summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Gommers <ralf.gommers@gmail.com>2018-12-26 21:07:12 -0800
committerRalf Gommers <ralf.gommers@gmail.com>2019-01-06 20:04:30 -0800
commita5c35798fad659100df16146f5ab886e45d324ab (patch)
tree4ff45af2be41d7a7e02f5e474cf1d725458ded21
parentb8849260eb9e9222449972326c7fdfe6db3b6c57 (diff)
downloadnumpy-a5c35798fad659100df16146f5ab886e45d324ab.tar.gz
BLD: move -std=c99 from runtests.py to Azure config
See gh-12610 for details.
-rw-r--r--azure-pipelines.yml2
-rwxr-xr-xruntests.py2
2 files changed, 1 insertions, 3 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 6e7975039..d935c3c6c 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -27,7 +27,7 @@ jobs:
cd ../numpy && \
NUMPY_EXPERIMENTAL_ARRAY_FUNCTION=1 \
F77=gfortran-5 F90=gfortran-5 \
- CFLAGS=-UNDEBUG python3 runtests.py --mode=full -- -rsx --junitxml=junit/test-results.xml"
+ CFLAGS='-UNDEBUG -std=c99' python3 runtests.py --mode=full -- -rsx --junitxml=junit/test-results.xml"
displayName: 'Run 32-bit Ubuntu Docker Build / Tests'
- task: PublishTestResults@2
inputs:
diff --git a/runtests.py b/runtests.py
index 41768a2ea..42866714f 100755
--- a/runtests.py
+++ b/runtests.py
@@ -351,8 +351,6 @@ def build_project(args):
'-Werror=unused-function',
])
env['CFLAGS'] = warnings_as_errors + ' ' + env.get('CFLAGS', '')
- # NumPy > 1.16 should be C99 compatible.
- env['CFLAGS'] = '-std=c99' + ' ' + env.get('CFLAGS', '')
if args.debug or args.gcov:
# assume everyone uses gcc/gfortran
env['OPT'] = '-O0 -ggdb'