从命令行在devenv中切换第三方编译器 [英] Switching 3rd party compilers in devenv from the command line

查看:272
本文介绍了从命令行在devenv中切换第三方编译器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个自动构建系统,构建各种Visual Studio 2005解决方案文件。这些解决方案包含各种Visual C ++和Intel Fortran项目。

We have an automated build system, which builds a variety of Visual Studio 2005 solution files. These solutions contain various Visual C++ and Intel Fortran projects.

我们正在升级我们的英特尔Fortran编译器,并且Visual Studio目前设置为与旧的Intel编译器(ver 9.1)。

We are in the process of upgrading our Intel Fortran compiler, and Visual Studio is currently setup to be integrated with the old Intel compiler (ver 9.1).

我正在寻找一种方法来告诉Visual Studio使用新的Intel Fortran编译器(ver 11)。我需要能够告诉Studio这只是为了我们的编译器升级项目,它的默认保持原样(使用版本9.1),使我们的标准版本可以继续,而不受升级项目的影响。

I'm looking for a way to tell Visual Studio to use the new Intel Fortran compiler (ver 11). I need to be able to tell Studio to do this just for our compiler upgrade project, with it's default remaining as is (using ver 9.1) so that our standard builds can continue without being affected by the upgrade project.

有人知道这是否可能吗?我可以告诉Visual Studio哪个Intel编译器通过命令行使用?

Does anybody know if this is possible? I.e., can I tell Visual Studio which Intel compiler to use via the command line?

此时,我可以使用英特尔提供的批处理脚本来设置LIB = ,INCLUDE =和PATH =环境变量。但是,当Visual Studio编译Fortran项目时,它使用的是9.1版。

At the moment, I can use the batch scripts that Intel supply to setup the LIB=, INCLUDE= and PATH= environment variables. However, when Visual Studio compiles the Fortran projects, it's using ver 9.1.

推荐答案

/ useenv命令行devenv.exe?

What about the "/useenv" command line to devenv.exe?


C:\>devenv /?

Microsoft (R) Visual Studio Version 8.0.50727.867.
Copyright (C) Microsoft Corp 1984-2005. All rights reserved.

Use:
devenv  [solutionfile | projectfile | anyfile.ext]  [switches]
...
/useenv         Use PATH, INCLUDE, LIBPATH, and LIB environment variables
                instead of IDE paths for VC++ builds.

这篇关于从命令行在devenv中切换第三方编译器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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