From 6c1f8356591c61278f2286cb55587cff1298e488 Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 14 Jun 2022 23:01:21 +0800 Subject: [PATCH] revert luajit (#1266) --- packages/l/luajit/port/xmake.lua | 5 ++++- packages/l/luajit/xmake.lua | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/l/luajit/port/xmake.lua b/packages/l/luajit/port/xmake.lua index fbc3546e4..6682c7657 100755 --- a/packages/l/luajit/port/xmake.lua +++ b/packages/l/luajit/port/xmake.lua @@ -139,8 +139,11 @@ target("buildvm") elseif is_arch("x64", "x86_64") then if has_config("gc64") then 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 - add_files("src/vm_x64.dasc") add_defines("LUAJIT_TARGET=LUAJIT_ARCH_X64", {public = true}) elseif is_arch("arm64", "arm64-v8a") then add_files("src/vm_arm64.dasc") diff --git a/packages/l/luajit/xmake.lua b/packages/l/luajit/xmake.lua index 4c26cdcdb..33cbb9314 100644 --- a/packages/l/luajit/xmake.lua +++ b/packages/l/luajit/xmake.lua @@ -4,6 +4,7 @@ package("luajit") set_description("A Just-In-Time Compiler (JIT) for the Lua programming language.") set_urls("http://luajit.org/download/LuaJIT-$(version).tar.gz", + "https://github.com/LuaJIT/LuaJIT.git", "http://luajit.org/git/luajit-2.0.git", "http://repo.or.cz/luajit-2.0.git")