10000 BLD: move -std=c99 from runtests.py to Azure config · rgommers/numpy@a5c3579 · GitHub
[go: up one dir, main page]

Skip to content

Commit a5c3579

Browse files
committed
BLD: move -std=c99 from runtests.py to Azure config
See numpygh-12610 for details.
1 parent b884926 commit a5c3579

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
cd ../numpy && \
2828
NUMPY_EXPERIMENTAL_ARRAY_FUNCTION=1 \
2929
F77=gfortran-5 F90=gfortran-5 \
30-
CFLAGS=-UNDEBUG python3 runtests.py --mode=full -- -rsx --junitxml=junit/test-results.xml"
30+
CFLAGS='-UNDEBUG -std=c99' python3 runtests.py --mode=full -- -rsx --junitxml=junit/test-results.xml"
3131
displayName: 'Run 32-bit Ubuntu Docker Build / Tests'
3232
- task: PublishTestResults@2
3333
inputs:

runtests.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,6 @@ def build_project(args):
351351
'-Werror=unused-function',
352352
])
353353
env['CFLAGS'] = warnings_as_errors + ' ' + env.get('CFLAGS', '')
354-
# NumPy > 1.16 should be C99 compatible.
355-
env['CFLAGS'] = '-std=c99' + ' ' + env.get('CFLAGS', '')
356354
if args.debug or args.gcov:
357355
# assume everyone uses gcc/gfortran
358356
env['OPT'] = '-O0 -ggdb'

0 commit comments

Comments
 (0)
0