Sublime Text 2 Build(Ctrl + B)英特尔Fortran编译器 [英] Sublime Text 2 Build (Ctrl +B) Intel Fortran Compiler

查看:218
本文介绍了Sublime Text 2 Build(Ctrl + B)英特尔Fortran编译器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Sublime Text2作为编辑器的Linux 64位上使用ifort 11.1。我想知道,我如何创建一个自定义构建命令来编译代码?另外我需要知道如何产生与源文件同名的输出。例如,我想将以下命令复制到自定义生成系统中:

  ifort mycode.f90 -o mycode 

到目前为止,我尝试过:

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

没有成功。想法?

解决方案

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


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?

解决方案

This seems to work:

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

这篇关于Sublime Text 2 Build(Ctrl + B)英特尔Fortran编译器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆