diff options
author | Travis Oliphant <oliphant@enthought.com> | 2010-01-24 23:11:57 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2010-01-24 23:11:57 +0000 |
commit | 786f775567863fd5567e26566e4e8f294c89ea81 (patch) | |
tree | fa2693d1828103a92d24a4c285bdcdc5142a20f0 /numpy/distutils/fcompiler/intel.py | |
parent | 889d1e20d0a719dfc82c16b285358ea0fef9ec0b (diff) | |
download | numpy-786f775567863fd5567e26566e4e8f294c89ea81.tar.gz |
Apply ifort.patch from ticket #1372 to allow Intel Fortran Compiler 11.1 to be called by numpy.distutils.
Diffstat (limited to 'numpy/distutils/fcompiler/intel.py')
-rw-r--r-- | numpy/distutils/fcompiler/intel.py | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/numpy/distutils/fcompiler/intel.py b/numpy/distutils/fcompiler/intel.py index 166fcbe84..d7effb01e 100644 --- a/numpy/distutils/fcompiler/intel.py +++ b/numpy/distutils/fcompiler/intel.py @@ -8,7 +8,7 @@ from numpy.distutils.fcompiler import FCompiler, dummy_fortran_file compilers = ['IntelFCompiler', 'IntelVisualFCompiler', 'IntelItaniumFCompiler', 'IntelItaniumVisualFCompiler', - 'IntelEM64TFCompiler'] + 'IntelEM64VisualFCompiler', 'IntelEM64TFCompiler'] def intel_version_match(type): # Match against the important stuff in the version string @@ -165,9 +165,14 @@ class IntelVisualFCompiler(BaseIntelFCompiler): compiler_type = 'intelv' description = 'Intel Visual Fortran Compiler for 32-bit apps' version_match = intel_version_match('32-bit|IA-32') + + def update_executables(self): + f = dummy_fortran_file() + self.executables['version_cmd'] = ['<F77>', '/FI', '/c', + f + '.f', '/o', f + '.o'] ar_exe = 'lib.exe' - possible_executables = ['ifl'] + possible_executables = ['ifort', 'ifl'] executables = { 'version_cmd' : None, @@ -196,7 +201,7 @@ class IntelVisualFCompiler(BaseIntelFCompiler): return ['/4Yb','/d2'] def get_flags_opt(self): - return ['/O3','/Qip','/Qipo','/Qipo_obj'] + return ['/O3','/Qip'] def get_flags_arch(self): opt = [] @@ -231,6 +236,13 @@ class IntelItaniumVisualFCompiler(IntelVisualFCompiler): 'ranlib' : None } +class IntelEM64VisualFCompiler(IntelVisualFCompiler): + compiler_type = 'intelvem' + description = 'Intel Visual Fortran Compiler for 64-bit apps' + + version_match = simple_version_match(start='Intel\(R\).*?64,') + + if __name__ == '__main__': from distutils import log log.set_verbosity(2) |