graphene
graphene copied to clipboard
Fix and improve building with clang-cl
Hi,
This attempts to fix building with clang-cl (the clang compiler that attempts to be MSVC compatible), by:
- Fixing
graphene-macros.hby checking for the existance of__GNUC__before trying to check its value, sinceclang-cldefines_MSC_VERbut not__GNUC__, unlike clang on *NIX. - Improve detection of compiler flags used for
clang-cl, which follows more the ones used on GCC than Visual Studio, and filter out those that aren't supported. Also, force-msse4.1since that is required for bulding the SSE 4.1 code onclang-cl. - Disable the deprecation warnings that result form the Visual Studio headers, which
clang-clutilizes. - For the SSE/ARM NEON SIMD implementations, make
clang-clfollow the GCC codepath, since__extension__is supported there as well.
With blessings, thank you!