Set FORTRANMODDIRPREFIX for ifort tool (should fix 1260).
authorcournape <cournape@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Mon, 20 Oct 2008 12:21:09 +0000 (12:21 +0000)
committercournape <cournape@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Mon, 20 Oct 2008 12:21:09 +0000 (12:21 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@3711 fdb21ef1-2011-0410-befe-b5e4ea1792b1

src/engine/SCons/Tool/ifort.py

index fc438f40a64a025de04101f3d2dd417732720ad2..deb0ee3446cfadc306048bbd5855a564daaa8007 100644 (file)
@@ -75,6 +75,9 @@ def generate(env):
             for var in ['%sCOM' % dialect, '%sPPCOM' % dialect,
                         'SH%sCOM' % dialect, 'SH%sPPCOM' % dialect]:
                 env[var] = string.replace(env[var], '-o $TARGET', '-object:$TARGET')
+        env['FORTRANMODDIRPREFIX'] = "/module:"
+    else:
+        env['FORTRANMODDIRPREFIX'] = "-module "
 
 def exists(env):
     return env.Detect('ifort')