Skip to content

Commit 31cc29b

Browse files
committed
Fix NATIVE_FP16 macro in our fork of half.h
Simple build unbreak for Raspberry Pi 5 -- fp16 is an optional aarch64 feature.
1 parent ed15042 commit 31cc29b

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

Lines changed: 1 addition & 1 deletion
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)
1919
#ifndef __ARM_V8_ONLY__
2020
#define NATIVE_FP16 1
2121
#endif // __ARM_V8_ONLY__

0 commit comments

Comments
 (0)