Skip to content

Commit fb1cc93

Browse files
authored
Fix NATIVE_FP16 macro in our fork of half.h (#7449)
Simple build unbreak for Raspberry Pi 5 -- fp16 is an optional aarch64 feature.
1 parent 39e8538 commit fb1cc93

File tree

1 file changed

+1
-1
lines changed
  • runtime/core/portable_type

1 file changed

+1
-1
lines changed

runtime/core/portable_type/half.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include <ostream>
1616

1717
#if defined(__GNUC__) || defined(__clang__)
18-
#if defined(__aarch64__)
18+
#if defined(__aarch64__) && defined(__ARM_FEATURE_FP16_SCALAR_ARITHMETIC)
1919
#ifndef __ARM_V8_ONLY__
2020
#define NATIVE_FP16 1
2121
#endif // __ARM_V8_ONLY__

0 commit comments

Comments
 (0)