0002-original-patch-riscv-cross-compile-support.patch.patch 646 B

12345678910111213141516171819202122
  1. From 8ec291a9b65e5503952b502fc7e8eb4ad07ceeca Mon Sep 17 00:00:00 2001
  2. From: OpenEmbedded <oe.patch@oe>
  3. Date: Wed, 23 Aug 2023 05:37:49 +0000
  4. Subject: [PATCH] %% original patch: riscv-cross-compile-support.patch
  5. ---
  6. src/lj_arch.h | 2 +-
  7. 1 file changed, 1 insertion(+), 1 deletion(-)
  8. diff --git a/src/lj_arch.h b/src/lj_arch.h
  9. index 453414f3..09284829 100644
  10. --- a/src/lj_arch.h
  11. +++ b/src/lj_arch.h
  12. @@ -447,7 +447,7 @@
  13. #error "No support for RISC-V 32"
  14. #elif LUAJIT_TARGET == LUAJIT_ARCH_RISCV64
  15. -#if defined(__riscv_float_abi_double)
  16. +#if defined(__riscv_float_abi_double) | 1
  17. #define LJ_ARCH_NAME "riscv64"
  18. #define LJ_ARCH_BITS 64