mirror of https://github.com/odrling/Aegisub
meson: fix luajit 64-bit builds
Upstream defines ENDIAN_LE or ENDIAN_BE always, so assume little endian. x86_64 defaulting to x86 seems to just be a mistake
This commit is contained in:
parent
ef64307ba1
commit
84beba20cb
|
@ -10,6 +10,8 @@ system_deps = [
|
||||||
# compat flag is needed for both the buildvm code generator (compiled natively) and luajit itself
|
# compat flag is needed for both the buildvm code generator (compiled natively) and luajit itself
|
||||||
add_project_arguments('-DLUAJIT_ENABLE_LUA52COMPAT', language: 'c', native: true)
|
add_project_arguments('-DLUAJIT_ENABLE_LUA52COMPAT', language: 'c', native: true)
|
||||||
add_project_arguments('-DLUAJIT_ENABLE_LUA52COMPAT', language: 'c', native: false)
|
add_project_arguments('-DLUAJIT_ENABLE_LUA52COMPAT', language: 'c', native: false)
|
||||||
|
add_project_arguments('-DENDIAN_LE', language: 'c', native: true)
|
||||||
|
add_project_arguments('-DENDIAN_LE', language: 'c', native: false)
|
||||||
if host_machine.system() == 'linux'
|
if host_machine.system() == 'linux'
|
||||||
add_project_arguments('-DLUAJIT_OS=LUAJIT_OS_LINUX', language: 'c', native: true)
|
add_project_arguments('-DLUAJIT_OS=LUAJIT_OS_LINUX', language: 'c', native: true)
|
||||||
readline_dep = cc.find_library('readline')
|
readline_dep = cc.find_library('readline')
|
||||||
|
|
|
@ -3,7 +3,7 @@ minilua = executable('minilua', 'minilua.c',
|
||||||
native: true)
|
native: true)
|
||||||
|
|
||||||
if host_machine.cpu_family() == 'x86_64'
|
if host_machine.cpu_family() == 'x86_64'
|
||||||
dynasm_arch = 'x86'
|
dynasm_arch = 'x64'
|
||||||
else
|
else
|
||||||
dynasm_arch = host_machine.cpu_family()
|
dynasm_arch = host_machine.cpu_family()
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in New Issue