summaryrefslogtreecommitdiff
path: root/numpy/distutils/intelccompiler.py
diff options
context:
space:
mode:
authorrgommers <ralf.gommers@googlemail.com>2011-03-09 22:10:13 +0800
committerrgommers <ralf.gommers@googlemail.com>2011-03-11 09:14:44 +0800
commitdede2691e7db9f0dacbc55444e5495856fa3f504 (patch)
treec50d6def30762d0f5a354b5fa05b9b0d38f68f32 /numpy/distutils/intelccompiler.py
parent46ce29dedb1005a78a8460eb0ccfd9025152b8da (diff)
downloadnumpy-dede2691e7db9f0dacbc55444e5495856fa3f504.tar.gz
ENH: add Intel 64-bit C compiler. Closes #960.
Diffstat (limited to 'numpy/distutils/intelccompiler.py')
-rw-r--r--numpy/distutils/intelccompiler.py20
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')