Skip to content

Commit 30134e4

Browse files
jan-wassenbergcopybara-github
authored andcommitted
disable NEON_BF16 on Apple clang 17, fixes #2678
PiperOrigin-RevId: 834611501
1 parent 52a2d98 commit 30134e4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

hwy/detect_targets.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,9 +256,10 @@
256256
#endif // HWY_BROKEN_ARM7_WITHOUT_VFP4
257257

258258
#ifndef HWY_BROKEN_NEON_BF16 // allow override
259-
// HWY_NEON_BF16 requires recent compilers.
259+
// Broken on older compilers:
260260
#if (HWY_COMPILER_CLANG != 0 && HWY_COMPILER_CLANG < 1700) || \
261-
(HWY_COMPILER_GCC_ACTUAL != 0 && HWY_COMPILER_GCC_ACTUAL < 1302)
261+
(HWY_COMPILER_GCC_ACTUAL != 0 && HWY_COMPILER_GCC_ACTUAL < 1302) || \
262+
(defined(__apple_build_version__) && __apple_build_version__ <= 17000000)
262263
#define HWY_BROKEN_NEON_BF16 (HWY_NEON_BF16)
263264
#else
264265
#define HWY_BROKEN_NEON_BF16 0

0 commit comments

Comments
 (0)