diff options
Diffstat (limited to 'tensorflow/core/lib/hash/crc32c_accelerate.cc')
-rw-r--r-- | tensorflow/core/lib/hash/crc32c_accelerate.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tensorflow/core/lib/hash/crc32c_accelerate.cc b/tensorflow/core/lib/hash/crc32c_accelerate.cc index 07fa2faedd..b87550fba9 100644 --- a/tensorflow/core/lib/hash/crc32c_accelerate.cc +++ b/tensorflow/core/lib/hash/crc32c_accelerate.cc @@ -31,6 +31,12 @@ limitations under the License. #endif #endif /* __SSE4_2__ */ +// This version of Apple clang has a bug: +// https://llvm.org/bugs/show_bug.cgi?id=25510 +#if defined(__APPLE__) && (__clang_major__ <= 8) +#undef USE_SSE_CRC32C +#endif + #ifdef USE_SSE_CRC32C #include <nmmintrin.h> #endif |