diff --git a/src/boot/meson.build b/src/boot/meson.build index d2524145d0..6da1ae6e2f 100644 --- a/src/boot/meson.build +++ b/src/boot/meson.build @@ -270,6 +270,9 @@ efi_arch_c_args = { 'arm' : ['-mgeneral-regs-only'], # Until -mgeneral-regs-only is supported in LoongArch, use the following option instead: 'loongarch64' : ['-mno-lsx', '-mno-lasx'], + # Assume F/D is usable on RISC-V because they're difficult to disable + 'riscv32' : ['-march=rv32imafdc_zicsr_zifencei'], + 'riscv64' : ['-march=rv64imafdc_zicsr_zifencei'], # Pass -m64/32 explicitly to make building on x32 work. 'x86_64' : ['-m64', '-march=x86-64', '-mno-red-zone', '-mgeneral-regs-only'], 'x86' : ['-m32', '-march=i686', '-mgeneral-regs-only', '-malign-double'],