Last active
January 20, 2025 17:57
-
-
Save geraintluff/be243d6c39f59b0abb4e8e1ccf8eafbb to your computer and use it in GitHub Desktop.
Code to break a build when using Apple Clang 16.0.0 with `--fast-math`
This file contains hidden or 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
#if defined(__FAST_MATH__) && (__apple_build_version__ >= 16000000) && (__apple_build_version__ <= 16000099) | |
# error Apple Clang 16.0.0 is broken, and generates completely incorrect code for some SIMD operations. -ffast-math makes it worse, so if you HAVE to use this version of Clang, you can't enable -ffast-math. | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment