summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authori-shenl <i-shenl@activestate.com>2021-03-09 07:38:30 -0800
committeri-shenl <i-shenl@activestate.com>2021-03-09 07:38:30 -0800
commiteb621ce98f1e123711be7f629056e838d8de0221 (patch)
treec90b4bd83887384d485270c9b5edd065ab1fd388 /numpy
parent2ea7ebdc4294868ec982ad6310d0daf6477fabfc (diff)
downloadnumpy-eb621ce98f1e123711be7f629056e838d8de0221.tar.gz
Set c99 to intel icc compiler so numpy will build
Numpy will not build if this is not set because it has code that follows the c99 standard. icc is set to c89 by default. Look below at IntelCCompilerW which is the icc equivalent on Windows and that one already has c99 set.
Diffstat (limited to 'numpy')
-rw-r--r--numpy/distutils/intelccompiler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/distutils/intelccompiler.py b/numpy/distutils/intelccompiler.py
index 0388ad577..0fa1c11dd 100644
--- a/numpy/distutils/intelccompiler.py
+++ b/numpy/distutils/intelccompiler.py
@@ -58,7 +58,7 @@ class IntelEM64TCCompiler(UnixCCompiler):
v = self.get_version()
mpopt = 'openmp' if v and v < '15' else 'qopenmp'
- self.cc_exe = ('icc -m64 -fPIC -fp-model strict -O3 '
+ self.cc_exe = ('icc -std=c99 -m64 -fPIC -fp-model strict -O3 '
'-fomit-frame-pointer -{}').format(mpopt)
compiler = self.cc_exe