Skip to content

Commit

Permalink
detect native bin2c
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Oct 25, 2024
1 parent 1386ddf commit 82c5c02
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions xmake/core/sandbox/modules/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,12 @@ function sandbox_utils.assert(value, format, ...)
end

-- generate c/c++ code from the binary file
function sandbox_utils.bin2c(binaryfile, outputfile, opt)
local ok, errors = utils.bin2c(binaryfile, outputfile, opt)
if not ok then
os.raise(errors)
if utils._bin2c then
function sandbox_utils.bin2c(binaryfile, outputfile, opt)
local ok, errors = utils.bin2c(binaryfile, outputfile, opt)
if not ok then
os.raise(errors)
end
end
end

Expand Down

0 comments on commit 82c5c02

Please sign in to comment.