Просмотр исходного кода

Don't use AVX with clang if the compiler isn't building with AVX instructions

Fixes https://github.com/libsdl-org/SDL/issues/4533
Sam Lantinga 4 лет назад
Родитель
Сommit
cae7bd9b65
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/audio/SDL_audiocvt.c

+ 1 - 1
src/audio/SDL_audiocvt.c

@@ -47,7 +47,7 @@
 #define HAVE_AVX_INTRINSICS 1
 #endif
 #if defined __clang__
-# if (__clang_major__ < 5)
+# if (__clang_major__ < 5) || !defined(__AVX__)
 #   undef HAVE_AVX_INTRINSICS
 # endif
 #elif defined __GNUC__