diff options
| author | ruki <[email protected]> | 2025-09-04 22:57:52 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-09-04 22:30:35 +0800 |
| commit | 4d11d90ba502bcd82a72c2ea66b1115897d81c52 (patch) | |
| tree | 7475b62c335f4c4028a0e7f36e5f4073b61151fd /xmake/rules/utils | |
| parent | 15c0177361f6a6b488ab6937d088f4a0a711a086 (diff) | |
improve bin2c
Diffstat (limited to 'xmake/rules/utils')
| -rw-r--r-- | xmake/rules/utils/bin2c/xmake.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/rules/utils/bin2c/xmake.lua b/xmake/rules/utils/bin2c/xmake.lua index 9bed0f658..5373d2093 100644 --- a/xmake/rules/utils/bin2c/xmake.lua +++ b/xmake/rules/utils/bin2c/xmake.lua @@ -38,7 +38,7 @@ rule("utils.bin2c") -- add commands batchcmds:show_progress(opt.progress, "${color.build.object}generating.bin2c %s", sourcefile_bin) batchcmds:mkdir(headerdir) - local argv = {"lua", "private.utils.bin2c", "-i", path(sourcefile_bin), "-o", path(headerfile)} + local argv = {"-i", path(sourcefile_bin), "-o", path(headerfile)} local linewidth = target:extraconf("rules", "utils.bin2c", "linewidth") if linewidth then table.insert(argv, "-w") @@ -48,7 +48,7 @@ rule("utils.bin2c") if nozeroend then table.insert(argv, "--nozeroend") end - batchcmds:vrunv(os.programfile(), argv, {envs = {XMAKE_SKIP_HISTORY = "y"}}) + batchcmds:lua("private.utils.bin2c", argv) -- add deps batchcmds:add_depfiles(sourcefile_bin) |
