diff options
author | Sayed Adel <seiko@imavr.com> | 2021-08-11 04:40:50 +0200 |
---|---|---|
committer | Sayed Adel <seiko@imavr.com> | 2021-08-11 05:09:16 +0200 |
commit | ae279066d6bd253e8675428fac8946938b8d48d9 (patch) | |
tree | ebdfd21fe3c0b88a279df88e6e03a2d633100b4e | |
parent | c4e20ec45f0aef437df9bbdc18849d15e9d7e850 (diff) | |
download | numpy-ae279066d6bd253e8675428fac8946938b8d48d9.tar.gz |
BLD, SIMD: Fix testing extra checks when `-Werror` isn't applicable for Clang.
In certain cases `-Werror` gets skipped during the availability test due
to "unused arguments" warnings. To solve the issue, `-Werror-implicit-function-declaration`
was added as a secondary flag, which is enough to guarantee the sanity of the testing process
when it comes to testing the availability of certain intrinsics.
-rw-r--r-- | numpy/distutils/ccompiler_opt.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/numpy/distutils/ccompiler_opt.py b/numpy/distutils/ccompiler_opt.py index 47d07ad4a..1942aa06e 100644 --- a/numpy/distutils/ccompiler_opt.py +++ b/numpy/distutils/ccompiler_opt.py @@ -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', |