Skip to content

Commit

Permalink
improve bcsave
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Apr 26, 2024
1 parent b127a7d commit f4ccb18
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions xmake/core/sandbox/modules/import/lib/luajit/bcsave.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -45,6 +49,4 @@ function main(luafile, bcfile, opt)
end
end

if xmake._LUAJIT then
return main
end
return main

0 comments on commit f4ccb18

Please sign in to comment.