From f4cd87b0135d84932f186bc068a5232912ee43b9 Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 7 Dec 2025 17:47:01 +0800 Subject: update bin2c --- xmake/modules/utils/binary/bin2c.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'xmake/modules/utils/binary/bin2c.lua') diff --git a/xmake/modules/utils/binary/bin2c.lua b/xmake/modules/utils/binary/bin2c.lua index ce7336e36..34d9c4e02 100644 --- a/xmake/modules/utils/binary/bin2c.lua +++ b/xmake/modules/utils/binary/bin2c.lua @@ -21,6 +21,7 @@ -- imports import("core.base.bytes") import("core.base.option") +import("core.base.binutils") local options = { {'w', "linewidth", "kv", nil, "Set the line width"}, @@ -98,8 +99,8 @@ function _do_bin2c(binarypath, outputpath, opt) end -- do dump - if utils.bin2c then - utils.bin2c(binarypath, outputpath, opt) + if binutils.bin2c then + binutils.bin2c(binarypath, outputpath, opt) else local binarydata = bytes(io.readfile(binarypath, {encoding = "binary"})) local outputfile = io.open(outputpath, 'w') -- cgit v1.3.1