Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7eae81e

Browse files
committed
BLD: Add clang -ffp-exception-behavior=strict also for _so
Apparently, there is a second `compiler_so` that is actually the main compiler being used, and modifying only the first one is just futile.
1 parent f353371 commit 7eae81e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

numpy/distutils/ccompiler.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,7 @@ def CCompiler_customize_cmd(self, cmd, ignore=()):
389389
# clang defaults to a non-strict floating error point model.
390390
# Since NumPy and most Python libs give warnings for these, override:
391391
self.compiler.append('-ffp-exception-behavior=strict')
392+
self.compiler_so.append('-ffp-exception-behavior=strict')
392393

393394
def allow(attr):
394395
return getattr(cmd, attr, None) is not None and attr not in ignore

0 commit comments

Comments
 (0)