summaryrefslogtreecommitdiff
path: root/xmake/modules/private/utils
diff options
context:
space:
mode:
authorruki <[email protected]>2024-10-25 00:45:11 +0800
committerruki <[email protected]>2024-10-25 00:45:11 +0800
commitecf4f21dd34c684e74618c95a4186d889badb5d3 (patch)
tree6e72e5d3920283764abd7628c733d9a0ea3848dd /xmake/modules/private/utils
parentc92b5d009f2421ee3cda1933c5cac519659785f1 (diff)
get linewidth
Diffstat (limited to 'xmake/modules/private/utils')
-rw-r--r--xmake/modules/private/utils/bin2c.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/xmake/modules/private/utils/bin2c.lua b/xmake/modules/private/utils/bin2c.lua
index 31b400954..987a478f7 100644
--- a/xmake/modules/private/utils/bin2c.lua
+++ b/xmake/modules/private/utils/bin2c.lua
@@ -20,7 +20,6 @@
-- imports
import("core.base.bytes")
-import("core.base.utils")
import("core.base.option")
local options = {
@@ -84,7 +83,7 @@ function _do_bin2c(binarypath, outputpath, opt)
-- do dump
if utils.bin2c then
- utils.bin2c(binarydata, outputpath, opt)
+ utils.bin2c(binarypath, outputpath, opt)
else
local binarydata = bytes(io.readfile(binarypath, {encoding = "binary"}))
local outputfile = io.open(outputpath, 'w')