summaryrefslogtreecommitdiff
path: root/xmake/rules/xmake_cli/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2025-09-04 23:05:39 +0800
committerruki <[email protected]>2025-09-04 22:30:35 +0800
commit7260c2d4f475146c4bc388787be28d7f68e8ca33 (patch)
tree3156d4ba24006040e0e5216bcb6bae4133537e33 /xmake/rules/xmake_cli/xmake.lua
parent9b446fb15e4c91cb6687cf904e4d39f3ce30637d (diff)
switch all bin2c rules
Diffstat (limited to 'xmake/rules/xmake_cli/xmake.lua')
-rw-r--r--xmake/rules/xmake_cli/xmake.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/rules/xmake_cli/xmake.lua b/xmake/rules/xmake_cli/xmake.lua
index 6f599f9bd..d3a4b6f26 100644
--- a/xmake/rules/xmake_cli/xmake.lua
+++ b/xmake/rules/xmake_cli/xmake.lua
@@ -54,8 +54,8 @@ rule("xmake.cli")
local headerdir = path.join(target:autogendir(), "rules", "xmake.cli", "include")
local headerfile = path.join(headerdir, "luafiles.xmz.h")
target:add("includedirs", headerdir)
- argv = {"lua", "private.utils.bin2c", "--nozeroend", "-i", path(archivefile), "-o", path(headerfile)}
- batchcmds:vrunv(os.programfile(), argv, {envs = {XMAKE_SKIP_HISTORY = "y"}})
+ argv = {"--nozeroend", "-i", path(archivefile), "-o", path(headerfile)}
+ batchcmds:vlua("private.utils.bin2c", argv)
batchcmds:add_depfiles(sourcefiles)
batchcmds:set_depmtime(os.mtime(dependfile))