mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-08 10:56:27 +00:00
Don't use AVX with clang if the compiler isn't building with AVX instructions
Fixes https://github.com/libsdl-org/SDL/issues/4533
This commit is contained in:
@@ -47,7 +47,7 @@
|
|||||||
#define HAVE_AVX_INTRINSICS 1
|
#define HAVE_AVX_INTRINSICS 1
|
||||||
#endif
|
#endif
|
||||||
#if defined __clang__
|
#if defined __clang__
|
||||||
# if (__clang_major__ < 5)
|
# if (__clang_major__ < 5) || !defined(__AVX__)
|
||||||
# undef HAVE_AVX_INTRINSICS
|
# undef HAVE_AVX_INTRINSICS
|
||||||
# endif
|
# endif
|
||||||
#elif defined __GNUC__
|
#elif defined __GNUC__
|
||||||
|
Reference in New Issue
Block a user