Skip to content

Commit 157c3fb

Browse files
authored
[libc] Make sure we have RISC-V f or d extension before using it (#104476)
This matches what we do for other architectures.
1 parent 3333ec1 commit 157c3fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/src/__support/FPUtil/FEnvImpl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#include "x86_64/FEnvImpl.h"
3232
#elif defined(LIBC_TARGET_ARCH_IS_ARM) && defined(__ARM_FP)
3333
#include "arm/FEnvImpl.h"
34-
#elif defined(LIBC_TARGET_ARCH_IS_ANY_RISCV)
34+
#elif defined(LIBC_TARGET_ARCH_IS_ANY_RISCV) && defined(__riscv_flen)
3535
#include "riscv/FEnvImpl.h"
3636
#else
3737

0 commit comments

Comments
 (0)