From f4ccb1825049d7ec8f0df5e333cce7e7fd86cca7 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 27 Apr 2024 00:25:31 +0800 Subject: improve bcsave --- xmake/core/sandbox/modules/import/lib/luajit/bcsave.lua | 8 +++++--- 1 file 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 -- cgit v1.3.1