|
|
@ -139,8 +139,11 @@ target("buildvm") |
|
|
|
elseif is_arch("x64", "x86_64") then |
|
|
|
elseif is_arch("x64", "x86_64") then |
|
|
|
if has_config("gc64") then |
|
|
|
if has_config("gc64") then |
|
|
|
add_defines("LUAJIT_ENABLE_GC64", {public = true}) |
|
|
|
add_defines("LUAJIT_ENABLE_GC64", {public = true}) |
|
|
|
|
|
|
|
add_files("src/vm_x64.dasc") |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
-- @see https://github.com/xmake-io/xmake-repo/issues/1264 |
|
|
|
|
|
|
|
add_files("src/vm_x86.dasc") |
|
|
|
end |
|
|
|
end |
|
|
|
add_files("src/vm_x64.dasc") |
|
|
|
|
|
|
|
add_defines("LUAJIT_TARGET=LUAJIT_ARCH_X64", {public = true}) |
|
|
|
add_defines("LUAJIT_TARGET=LUAJIT_ARCH_X64", {public = true}) |
|
|
|
elseif is_arch("arm64", "arm64-v8a") then |
|
|
|
elseif is_arch("arm64", "arm64-v8a") then |
|
|
|
add_files("src/vm_arm64.dasc") |
|
|
|
add_files("src/vm_arm64.dasc") |
|
|
|