summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2008-10-20 12:21:09 (GMT)
committerDavid Cournapeau <cournape@gmail.com>2008-10-20 12:21:09 (GMT)
commitbf9f8ce8a78ebf9d6153b4660988d59def873a83 (patch)
tree9858b0e1eeba94dd01b59b2ccc654243264428a0
parent23d996062aaf55c78ff8397310eaea20266494e6 (diff)
downloadSCons-bf9f8ce8a78ebf9d6153b4660988d59def873a83.zip
SCons-bf9f8ce8a78ebf9d6153b4660988d59def873a83.tar.gz
SCons-bf9f8ce8a78ebf9d6153b4660988d59def873a83.tar.bz2
Set FORTRANMODDIRPREFIX for ifort tool (should fix 1260).
-rw-r--r--src/engine/SCons/Tool/ifort.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/engine/SCons/Tool/ifort.py b/src/engine/SCons/Tool/ifort.py
index fc438f4..deb0ee3 100644
--- a/src/engine/SCons/Tool/ifort.py
+++ b/src/engine/SCons/Tool/ifort.py
@@ -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')