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

99封情书 提交于 2019-12-08 05:17:39

问题


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"


来源:https://stackoverflow.com/questions/14641970/sublime-text-2-build-ctrl-b-intel-fortran-compiler

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!