summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/core/sandbox/modules/import/lib/luajit/bcsave.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/xmake/core/sandbox/modules/import/lib/luajit/bcsave.lua b/xmake/core/sandbox/modules/import/lib/luajit/bcsave.lua
index 3f88155cc..a23523b4d 100644
--- a/xmake/core/sandbox/modules/import/lib/luajit/bcsave.lua
+++ b/xmake/core/sandbox/modules/import/lib/luajit/bcsave.lua
@@ -23,6 +23,10 @@ local io = require("base/io")
local string = require("base/string")
local raise = require("sandbox/modules/raise")
+if not xmake._LUAJIT then
+ return
+end
+
-- save lua file to bitcode file
--
-- @param luafile the lua file
@@ -45,6 +49,4 @@ function main(luafile, bcfile, opt)
end
end
-if xmake._LUAJIT then
- return main
-end
+return main