Skip to content

Commit 86c57b9

Browse files
authored
[libc][arm] Use __ARM_FP to detect floating point support for FEnvImpl. (llvm#72177)
llvm#72157
1 parent 94d47e6 commit 86c57b9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libc/src/__support/FPUtil/FEnvImpl.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@
2929
// the apple condition here should be removed.
3030
#elif defined(LIBC_TARGET_ARCH_IS_X86) && !defined(__APPLE__)
3131
#include "x86_64/FEnvImpl.h"
32-
#elif defined(LIBC_TARGET_ARCH_IS_ARM) && \
33-
LIBC_HAS_BUILTIN(__builtin_arm_get_fpscr)
32+
#elif defined(LIBC_TARGET_ARCH_IS_ARM) && defined(__ARM_FP)
3433
#include "arm/FEnvImpl.h"
3534
#elif defined(LIBC_TARGET_ARCH_IS_ANY_RISCV)
3635
#include "riscv/FEnvImpl.h"

0 commit comments

Comments
 (0)