diff options
Diffstat (limited to 'sysdeps/unix/sysv/linux/riscv/Makefile')
-rw-r--r-- | sysdeps/unix/sysv/linux/riscv/Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sysdeps/unix/sysv/linux/riscv/Makefile b/sysdeps/unix/sysv/linux/riscv/Makefile index 301b082398..4b6eacb32f 100644 --- a/sysdeps/unix/sysv/linux/riscv/Makefile +++ b/sysdeps/unix/sysv/linux/riscv/Makefile @@ -7,11 +7,13 @@ ifeq ($(subdir),stdlib) gen-as-const-headers += ucontext_i.sym endif -abi-variants := lp64 lp64d +abi-variants := ilp32 ilp32d lp64 lp64d ifeq (,$(filter $(default-abi),$(abi-variants))) $(error Unknown ABI $(default-abi), must be one of $(abi-variants)) endif -abi-lp64-condition := defined __LP64__ && defined __riscv_float_abi_soft -abi-lp64d-condition := defined __LP64__ && defined __riscv_float_abi_double +abi-ilp32-condition := __WORDSIZE == 32 && defined __riscv_float_abi_soft +abi-ilp32d-condition := __WORDSIZE == 32 && defined __riscv_float_abi_double +abi-lp64-condition := __WORDSIZE == 64 && defined __riscv_float_abi_soft +abi-lp64d-condition := __WORDSIZE == 64 && defined __riscv_float_abi_double |