summaryrefslogtreecommitdiff
path: root/numpy/distutils/ccompiler.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2019-10-26 08:02:30 -0600
committerGitHub <noreply@github.com>2019-10-26 08:02:30 -0600
commitd0ce0b3045baefa8fe48641d0c34fd7461165c2c (patch)
tree60dc8953cf08909dafe97cdb3f3f26cc6d464136 /numpy/distutils/ccompiler.py
parent7b9b41a4c7dbd7b719d62f343f57f841f5809693 (diff)
parent955b2906c6da37844b0ee54b8a53850cf5df199f (diff)
downloadnumpy-d0ce0b3045baefa8fe48641d0c34fd7461165c2c.tar.gz
Merge pull request #14771 from mattip/gcc-4.8
TST, BUILD: add a gcc 4.8 run on ubuntu 18.04
Diffstat (limited to 'numpy/distutils/ccompiler.py')
-rw-r--r--numpy/distutils/ccompiler.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/numpy/distutils/ccompiler.py b/numpy/distutils/ccompiler.py
index 643879023..684c7535b 100644
--- a/numpy/distutils/ccompiler.py
+++ b/numpy/distutils/ccompiler.py
@@ -532,6 +532,11 @@ def CCompiler_customize(self, dist, need_cxx=0):
'g++' in self.compiler[0] or
'clang' in self.compiler[0]):
self._auto_depends = True
+ if 'gcc' in self.compiler[0]:
+ # add std=c99 flag for gcc
+ # TODO: does this need to be more specific?
+ self.compiler.append('-std=c99')
+ self.compiler_so.append('-std=c99')
elif os.name == 'posix':
import tempfile
import shutil