meson: luajit: allow to build in ARM64

Meson thought that a ARM64 cpu is aarch64, while
luajit only provided a file for "arm64". Since there is
no difference but the name between aarch64 and arm64, I
choose to bind aarch64 -> arm64.

Signed-off-by: Yi-Jyun Pan <>
This commit is contained in:
Yi-Jyun Pan 2021-05-23 13:11:30 +08:00 committed by Ryan Lucia
parent 62c3acb666
commit 761194025f
1 changed files with 5 additions and 2 deletions

View File

@ -2,10 +2,13 @@ minilua = executable('minilua', 'minilua.c',
dependencies: system_deps,
native: true)
if host_machine.cpu_family() == 'x86_64'
cpu_family = host_machine.cpu_family()
if cpu_family == 'x86_64'
dynasm_arch = 'x64'
elif cpu_family == 'aarch64'
dynasm_arch = 'arm64'
dynasm_arch = host_machine.cpu_family()
dynasm_arch = cpu_family
dynasm_dasc = files('../vm_@0@.dasc'.format(dynasm_arch))