Skip to content

Commit

Permalink
Merge pull request #19656 from charris/backport-19642
Browse files Browse the repository at this point in the history
BLD, SIMD: Fix testing extra checks when `-Werror` isn't applicable for Clang
  • Loading branch information
charris committed Aug 12, 2021
2 parents 27d71dc + 2d9f5b0 commit 8045183
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion numpy/distutils/ccompiler_opt.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,12 @@ class _Config:
clang = dict(
native = '-march=native',
opt = "-O3",
werror = '-Werror'
# One of the following flags needs to be applicable for Clang to
# guarantee the sanity of the testing process, however in certain
# cases `-Werror` gets skipped during the availability test due to
# "unused arguments" warnings.
# see https://github.com/numpy/numpy/issues/19624
werror = '-Werror-implicit-function-declaration -Werror'
),
icc = dict(
native = '-xHost',
Expand Down

0 comments on commit 8045183

Please sign in to comment.