From 31cc29b6ac76505090c48f68f5f84b3d55ad2aa7 Mon Sep 17 00:00:00 2001 From: Scott Wolchok Date: Fri, 27 Dec 2024 10:12:47 -0800 Subject: [PATCH] Fix NATIVE_FP16 macro in our fork of half.h Simple build unbreak for Raspberry Pi 5 -- fp16 is an optional aarch64 feature. --- runtime/core/portable_type/half.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/core/portable_type/half.h b/runtime/core/portable_type/half.h index fa40a80782..8e90bd7231 100644 --- a/runtime/core/portable_type/half.h +++ b/runtime/core/portable_type/half.h @@ -15,7 +15,7 @@ #include #if defined(__GNUC__) || defined(__clang__) -#if defined(__aarch64__) +#if defined(__aarch64__) && defined(__ARM_FEATURE_FP16) #ifndef __ARM_V8_ONLY__ #define NATIVE_FP16 1 #endif // __ARM_V8_ONLY__