riscv-cross-compile-support.patch 375 B

12345678910111213
  1. diff --git a/src/lj_arch.h b/src/lj_arch.h
  2. index 453414f3..09284829 100644
  3. --- a/src/lj_arch.h
  4. +++ b/src/lj_arch.h
  5. @@ -447,7 +447,7 @@
  6. #error "No support for RISC-V 32"
  7. #elif LUAJIT_TARGET == LUAJIT_ARCH_RISCV64
  8. -#if defined(__riscv_float_abi_double)
  9. +#if defined(__riscv_float_abi_double) | 1
  10. #define LJ_ARCH_NAME "riscv64"
  11. #define LJ_ARCH_BITS 64