Skip to content

Instantly share code, notes, and snippets.

@geraintluff
Last active January 20, 2025 17:57
Show Gist options
  • Save geraintluff/be243d6c39f59b0abb4e8e1ccf8eafbb to your computer and use it in GitHub Desktop.
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`
#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