-
-
Notifications
You must be signed in to change notification settings - Fork 9.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19479 from seberg/fixup-clang-flag-try
BLD: Add clang `-ftrapping-math` also for `compiler_so`
- Loading branch information
Showing
3 changed files
with
13 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Distutils forces strict floating point model on clang | ||
----------------------------------------------------- | ||
NumPy now sets the ``-ftrapping-math`` option on clang to enforce correct | ||
floating point error handling for universal functions. | ||
Clang defaults to non-IEEE and C99 conform behaviour otherwise. | ||
This change (using the equivalent but newer ``-ffp-exception-behavior=strict``) | ||
was attempted in NumPy 1.21, but was effectively never used. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters