Skip to content

Commit

Permalink
[libc] Make sure we have RISC-V f or d extension before using it (llv…
Browse files Browse the repository at this point in the history
…m#104476)

This matches what we do for other architectures.
  • Loading branch information
petrhosek authored Aug 15, 2024
1 parent 3333ec1 commit 157c3fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libc/src/__support/FPUtil/FEnvImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include "x86_64/FEnvImpl.h"
#elif defined(LIBC_TARGET_ARCH_IS_ARM) && defined(__ARM_FP)
#include "arm/FEnvImpl.h"
#elif defined(LIBC_TARGET_ARCH_IS_ANY_RISCV)
#elif defined(LIBC_TARGET_ARCH_IS_ANY_RISCV) && defined(__riscv_flen)
#include "riscv/FEnvImpl.h"
#else

Expand Down

0 comments on commit 157c3fb

Please sign in to comment.