Sublime Text 2 Build (Ctrl +B) Intel Fortran Compi

2019-06-06 18:23发布

问题:

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:

This seems to work:

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