10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 18e0410 + 928cd74 commit 85385d6Copy full SHA for 85385d6
meson.build
@@ -52,6 +52,15 @@ endif
52
add_project_arguments(
53
cc.get_supported_arguments( '-fno-strict-aliasing'), language : 'c'
54
)
55
+#
56
+# Clang defaults to a non-strict floating error point model, but we need strict
57
+# behavior. `-ftrapping-math` is equivalent to `-ffp-exception-behavior=strict`.
58
+# Note that this is only supported on macOS arm64 as of XCode 14.3
59
+if cc.get_id() == 'clang'
60
+ add_project_arguments(
61
+ cc.get_supported_arguments('-ftrapping-math'), language: ['c', 'cpp'],
62
+ )
63
+endif
64
65
# Generate version number. Note that this will not (yet) update the version
66
# number seen by pip or reflected in wheel filenames. See
0 commit comments