Skip to content

Commit bf60ab1

Browse files
Float16Support.cpp: Add __arm__ for ARM 32-bit architectures (#83979)
This is the only patch required to cross-compile Swift for armv6 and armv7 that is used here: https://github.com/swift-embedded-linux/armhf-debian/blob/main/patches/0002-Add-arm-to-float16support-for-missing-symbol.patch
1 parent cbacece commit bf60ab1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/runtime/Float16Support.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
// Android NDK <r21 do not provide `__aeabi_d2h` in the compiler runtime,
3232
// provide shims in that case.
3333
#if (defined(__ANDROID__) && defined(__ARM_ARCH_7A__) && defined(__ARM_EABI__)) || \
34-
((defined(__i386__) || defined(__i686__) || defined(__x86_64__)) && !defined(__APPLE__))
34+
((defined(__i386__) || defined(__i686__) || defined(__arm__) || defined(__x86_64__)) && !defined(__APPLE__))
3535

3636
#include "swift/shims/Visibility.h"
3737

0 commit comments

Comments
 (0)