- In Visual Studio project files, put quotes around the -C directory
so everything works even if the path has spaces in it.
+ - The Intel Fortran compiler uses -object:$TARGET, not "-o $TARGET",
+ when building object files on Windows. Have the the ifort Tool
+ modify the default command lines appropriately.
+
From Chen Lee:
- Handle Visual Studio project and solution files in Unicode.
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
+import string
+
import SCons.Defaults
import fortran
# be in shared libraries.
env['SHLINKFLAGS'] = '-shared -no_archive'
+ #
+ if env['PLATFORM'] == 'win32':
+ # On Windows, the ifort compiler specifies the object on the
+ # command line with -object:, not -o. Massage the necessary
+ # command-line construction variables.
+ for var in ['_FORTRANCOMD', '_FORTRANPPCOMD',
+ '_SHFORTRANCOMD', '_SHFORTRANPPCOMD']:
+ env[var] = string.replace(env[var], '-o $TARGET', '-object:$TARGET')
+
def exists(env):
return env.Detect('ifort')