| Index: third_party/scons/scons-local/SCons/Tool/ifort.py
|
| ===================================================================
|
| --- third_party/scons/scons-local/SCons/Tool/ifort.py (revision 7505)
|
| +++ third_party/scons/scons-local/SCons/Tool/ifort.py (working copy)
|
| @@ -1,7 +1,7 @@
|
| """SCons.Tool.ifort
|
|
|
| Tool-specific initialization for newer versions of the Intel Fortran Compiler
|
| -for Linux.
|
| +for Linux/Windows (and possibly Mac OS X).
|
|
|
| There normally shouldn't be any need to import this module directly.
|
| It will usually be imported through the generic SCons.Tool.Tool()
|
| @@ -32,7 +32,7 @@
|
| # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
| #
|
|
|
| -__revision__ = "src/engine/SCons/Tool/ifort.py 3603 2008/10/10 05:46:45 scons"
|
| +__revision__ = "src/engine/SCons/Tool/ifort.py 3842 2008/12/20 22:59:52 scons"
|
|
|
| import string
|
|
|
| @@ -47,7 +47,7 @@
|
| fscan = FortranScan("FORTRANPATH")
|
| SCons.Tool.SourceFileScanner.add_scanner('.i', fscan)
|
| SCons.Tool.SourceFileScanner.add_scanner('.i90', fscan)
|
| -
|
| +
|
| if not env.has_key('FORTRANFILESUFFIXES'):
|
| env['FORTRANFILESUFFIXES'] = ['.i']
|
| else:
|
| @@ -75,6 +75,9 @@
|
| 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')
|
|
|