1
votes

I am using ifort 11.1 on Linux 64-bits with Sublime Text2 as editor. I want to know, how can I create a custom build command to compile the code? Also I need to know how to produce the output with the same name as the source file. For example I want to reproduce the following command into a custom Build System:

ifort mycode.f90 -o mycode

So far I tried:

{
"cmd": ["ifort","$file"],
"selector": ["iFort"],
"path":["/usr/local/Compiler/11.1/080/bin/intel64/ifort intel64"]
}

Without success. Ideas?

1
Any errors? Have you followed these guidelines? Have you tried to troubleshoot according to these instructions? - maialithar

1 Answers

2
votes

This seems to work:

"cmd": ["ifort","$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.fortran90"