diff options
Diffstat (limited to 'numpy/distutils/intelccompiler.py')
-rw-r--r-- | numpy/distutils/intelccompiler.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/numpy/distutils/intelccompiler.py b/numpy/distutils/intelccompiler.py index e03c5beba..b82445ab8 100644 --- a/numpy/distutils/intelccompiler.py +++ b/numpy/distutils/intelccompiler.py @@ -9,9 +9,11 @@ class IntelCCompiler(UnixCCompiler): compiler_type = 'intel' cc_exe = 'icc' + cc_args = 'fPIC' def __init__ (self, verbose=0, dry_run=0, force=0): UnixCCompiler.__init__ (self, verbose,dry_run, force) + self.cc_exe = 'icc -fPIC' compiler = self.cc_exe self.set_executables(compiler=compiler, compiler_so=compiler, @@ -27,3 +29,21 @@ class IntelItaniumCCompiler(IntelCCompiler): for cc_exe in map(find_executable,['icc','ecc']): if cc_exe: break + +class IntelEM64TCCompiler(UnixCCompiler): + +""" A modified Intel x86_64 compiler compatible with a 64bit gcc built Python. + """ + + compiler_type = 'intelem' + cc_exe = 'icc -m64 -fPIC' + cc_args = "-fPIC" + def __init__ (self, verbose=0, dry_run=0, force=0): + UnixCCompiler.__init__ (self, verbose,dry_run, force) + self.cc_exe = 'icc -m64 -fPIC' + compiler = self.cc_exe + self.set_executables(compiler=compiler, + compiler_so=compiler, + compiler_cxx=compiler, + linker_exe=compiler, + linker_so=compiler + ' -shared') |