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 <pan93412@gmail.com>
This commit is contained in:
Yi-Jyun Pan 2021-05-23 13:11:30 +08:00 committed by Ryan Lucia
parent 62c3acb666
commit 761194025f

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'
else
dynasm_arch = host_machine.cpu_family()
dynasm_arch = cpu_family
endif
dynasm_dasc = files('../vm_@0@.dasc'.format(dynasm_arch))