diff options
author | Fernando Perez <fperez@fperez.org> | 2005-11-03 21:33:46 +0000 |
---|---|---|
committer | Fernando Perez <fperez@fperez.org> | 2005-11-03 21:33:46 +0000 |
commit | f5d38ebb7d2fb87ced504a23b79a619ec1e98720 (patch) | |
tree | 4d8bc32bba0714a1925e6e0c90a5e39117d59875 /scipy/distutils/intelccompiler.py | |
parent | 3bdf640416687dd312c600b454ad28b8291acbd4 (diff) | |
download | numpy-f5d38ebb7d2fb87ced504a23b79a619ec1e98720.tar.gz |
Small fixes for Intel Compiler class - tested and builds correctly
Diffstat (limited to 'scipy/distutils/intelccompiler.py')
-rw-r--r-- | scipy/distutils/intelccompiler.py | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/scipy/distutils/intelccompiler.py b/scipy/distutils/intelccompiler.py index 461074ba0..87b7f564b 100644 --- a/scipy/distutils/intelccompiler.py +++ b/scipy/distutils/intelccompiler.py @@ -13,12 +13,18 @@ class IntelCCompiler(UnixCCompiler): def __init__ (self, verbose=0, dry_run=0, force=0): UnixCCompiler.__init__ (self, verbose,dry_run, force) - self.linker = self.cc_exe - self.set_executable(linker_so=self.linker + ' -shared') + compiler = self.cc_exe + self.set_executables(compiler=compiler, + compiler_so=compiler, + compiler_cxx=compiler, + linker_exe=compiler, + linker_so=compiler + ' -shared') -class IntelItaniumCompiler(IntelCCompiler): +class IntelItaniumCCompiler(IntelCCompiler): compiler_type = 'intele' - for cc_exe in map(find_executable,['ecc','icc']): + # On Itanium, the Intel Compiler used to be called ecc, let's search for + # it (now it's also icc, so ecc is last in the search). + for cc_exe in map(find_executable,['icc','ecc']): if os.path.isfile(cc_exe): break |