summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatti Picus <matti.picus@gmail.com>2021-08-11 07:02:35 +0300
committerGitHub <noreply@github.com>2021-08-11 07:02:35 +0300
commit38d843e6b526fc5e8a936b77dc8d33750f5735d8 (patch)
tree21aa3d8d93719cbf3a29ebf4eb5e4f6f2a04cb75
parenteeef9d4646103c3b1afd3085f1393f2b3f9575b2 (diff)
parentae279066d6bd253e8675428fac8946938b8d48d9 (diff)
downloadnumpy-38d843e6b526fc5e8a936b77dc8d33750f5735d8.tar.gz
Merge pull request #19642 from seiko2plus/issue_19624
BLD, SIMD: Fix testing extra checks when `-Werror` isn't applicable for Clang
-rw-r--r--numpy/distutils/ccompiler_opt.py7
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',