summaryrefslogtreecommitdiff
path: root/numpy/distutils/fcompiler/intel.py
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2020-01-23 18:24:37 +0000
committerEric Wieser <wieser.eric@gmail.com>2020-01-23 18:24:37 +0000
commitcf8ab82c8227fc4e8fbad474f5f50f90e75d1b3a (patch)
tree7cf5782692909954c0a12e4ceadc70d013ab5bbb /numpy/distutils/fcompiler/intel.py
parente94cec800304a6a467cf90ce4e7d3e207770b4b4 (diff)
downloadnumpy-cf8ab82c8227fc4e8fbad474f5f50f90e75d1b3a.tar.gz
BUG: Flags should not contain spaces
It's very unlikely that `ifort` is supposed to be invoked as `ifort "-fpmodel strict"` instead of `ifort -fpmodel strict` . Spaces in flag items will end up passed as a single argument.
Diffstat (limited to 'numpy/distutils/fcompiler/intel.py')
-rw-r--r--numpy/distutils/fcompiler/intel.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/numpy/distutils/fcompiler/intel.py b/numpy/distutils/fcompiler/intel.py
index d84f38c76..c7b3c2340 100644
--- a/numpy/distutils/fcompiler/intel.py
+++ b/numpy/distutils/fcompiler/intel.py
@@ -59,7 +59,7 @@ class IntelFCompiler(BaseIntelFCompiler):
def get_flags_opt(self): # Scipy test failures with -O2
v = self.get_version()
mpopt = 'openmp' if v and v < '15' else 'qopenmp'
- return ['-fp-model strict -O1 -{}'.format(mpopt)]
+ return ['-fp-model', 'strict', '-O1', '-{}'.format(mpopt)]
def get_flags_arch(self):
return []
@@ -125,10 +125,10 @@ class IntelEM64TFCompiler(IntelFCompiler):
def get_flags_opt(self): # Scipy test failures with -O2
v = self.get_version()
mpopt = 'openmp' if v and v < '15' else 'qopenmp'
- return ['-fp-model strict -O1 -{}'.format(mpopt)]
+ return ['-fp-model', 'strict', '-O1', '-{}'.format(mpopt)]
def get_flags_arch(self):
- return ['']
+ return []
# Is there no difference in the version string between the above compilers
# and the Visual compilers?
@@ -210,7 +210,7 @@ class IntelEM64VisualFCompiler(IntelVisualFCompiler):
version_match = simple_version_match(start=r'Intel\(R\).*?64,')
def get_flags_arch(self):
- return ['']
+ return []
if __name__ == '__main__':