mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2025-12-06 16:56:55 +08:00
xcode: disable avx512 support
xcode reports clang version 9. It does not appear to support inline assembly using avx512 instructions. Tested with cmake libyuv on Mac. Fails without this patch. BUG=libyuv:789
This commit is contained in:
parent
4d67b3e851
commit
8b458d5bd9
@ -56,9 +56,10 @@ extern "C" {
|
|||||||
#endif // __clang__
|
#endif // __clang__
|
||||||
|
|
||||||
// clang >= 6.0.0 required for AVX512.
|
// clang >= 6.0.0 required for AVX512.
|
||||||
// TODO(fbarchard): fix xcode 9 ios b/789.
|
|
||||||
#if defined(__clang__) && (defined(__x86_64__) || defined(__i386__))
|
#if defined(__clang__) && (defined(__x86_64__) || defined(__i386__))
|
||||||
#if (__clang_major__ >= 7) && !defined(__APPLE_EMBEDDED_SIMULATOR__)
|
// clang in xcode follows a different versioning scheme.
|
||||||
|
// TODO(fbarchard): fix xcode 9 ios b/789.
|
||||||
|
#if (__clang_major__ >= 7) && !defined(__APPLE__)
|
||||||
#define CLANG_HAS_AVX512 1
|
#define CLANG_HAS_AVX512 1
|
||||||
#endif // clang >= 7
|
#endif // clang >= 7
|
||||||
#endif // __clang__
|
#endif // __clang__
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user