Skip to content

Commit 58b7d20

Browse files
authored
[libc] Fix the risc-v half precison float feature check (#145894)
This is a follow-up to #145169, which would break compiles when __riscv_zfhmin is not defined.
1 parent 67302b2 commit 58b7d20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/src/__support/macros/properties/cpu_features.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161

6262
#if defined(__riscv_flen)
6363
// https://github.com/riscv-non-isa/riscv-c-api-doc/blob/main/src/c-api.adoc
64-
#if (__riscv_arch_test && __riscv_zfhmin)
64+
#if defined(__riscv_zfhmin)
6565
#define LIBC_TARGET_CPU_HAS_RISCV_FPU_HALF
6666
#define LIBC_TARGET_CPU_HAS_FPU_HALF
6767
#endif // LIBC_TARGET_CPU_HAS_RISCV_FPU_HALF

0 commit comments

Comments
 (0)