From 4e6af75db40e5828d8a06420b32ba0504eacbd7d Mon Sep 17 00:00:00 2001 From: arch1t3cht Date: Thu, 12 Oct 2023 23:04:22 +0200 Subject: [PATCH] Add proper endianness flag for dasm in luajit wrap Fixes luajit almost completely breaking on aarch64 and probably other non-x86 architectures. --- subprojects/packagefiles/luajit/src/host/meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/subprojects/packagefiles/luajit/src/host/meson.build b/subprojects/packagefiles/luajit/src/host/meson.build index b3e963ef4..2cde6b005 100644 --- a/subprojects/packagefiles/luajit/src/host/meson.build +++ b/subprojects/packagefiles/luajit/src/host/meson.build @@ -21,6 +21,7 @@ else hpre = '#include "@0@/../lj_arch.h"'.format(meson.current_source_dir()) checkdefs = [ + ['LJ_LE', '1', ['-D', 'ENDIAN_LE']], ['LJ_ARCH_BITS', '64', ['-D', 'P64']], ['LJ_HASJIT', '1', ['-D', 'JIT']], ['LJ_HASFFI', '1', ['-D', 'FFI']],