Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Compiler selection on command line

Martin__Paul
New Contributor I
1,116 Views

Is there a way to tell Visual Studio on the command line which installed Fortran compiler to use? I have a scripted build which needs to use specific compiler versions for different source branches. I have looked into exporting settings in Visual Studio which can be loaded on the command line using /ResetSettings, but Intel Fortran compiler settings do not appear in the export list. Any ideas?

0 Kudos
2 Replies
Steven_L_Intel1
Employee
1,116 Views
Do this. Call the ifortvars.bat script for the version you want, then use:

devenv /useenv

to invoke Visual Studio. This will use the environment variables already set up rather than what VS would normally use.
0 Kudos
Martin__Paul
New Contributor I
1,116 Views
Thanks, that's exactly what I was looking for.
0 Kudos
Reply