Commit 8b458d5b authored by Johann's avatar Johann

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
parent 4d67b3e8
......@@ -56,9 +56,10 @@ extern "C" {
#endif // __clang__
// clang >= 6.0.0 required for AVX512.
// TODO(fbarchard): fix xcode 9 ios b/789.
#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
#endif // clang >= 7
#endif // __clang__
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment