Skip to content

Commit 71d8bd8

Browse files
committed
runtime: enable shims for Float16 on Windows (x86)
When building for Windows x86, we do not have `__i686__` defined, but do have `__i386__` defined. Ensure that the routines are included for the x86 Windows target.
1 parent 4f3f68e commit 71d8bd8

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
@@ -30,7 +30,7 @@
3030
// Android NDK <r21 do not provide `__aeabi_d2h` in the compiler runtime,
3131
// provide shims in that case.
3232
#if (defined(__ANDROID__) && defined(__ARM_ARCH_7A__) && defined(__ARM_EABI__)) || \
33-
((defined(__i686__) || defined(__x86_64__)) && !defined(__APPLE__))
33+
((defined(__i386__) || defined(__i686__) || defined(__x86_64__)) && !defined(__APPLE__))
3434

3535
#include "../SwiftShims/Visibility.h"
3636

0 commit comments

Comments
 (0)