Skip to content

Commit

Permalink
BLD: move -std=c99 from runtests.py to Azure config
Browse files Browse the repository at this point in the history
See gh-12610 for details.
  • Loading branch information
rgommers committed Jan 7, 2019
1 parent b884926 commit a5c3579
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Expand Up @@ -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:
Expand Down
2 changes: 0 additions & 2 deletions runtests.py
Expand Up @@ -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'
Expand Down

0 comments on commit a5c3579

Please sign in to comment.