diff options
| author | ruki <[email protected]> | 2025-12-07 00:04:22 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-12-07 17:15:59 +0800 |
| commit | d0293d9d840a71b64e5622350fa2e1df0ecff92f (patch) | |
| tree | 4fd9815904439eca70c4452739fea849234906cf /xmake/rules/utils | |
| parent | 0e2574300271cdb454db610b36466dd27ea7cfa3 (diff) | |
fix bin2obj rule
Diffstat (limited to 'xmake/rules/utils')
| -rw-r--r-- | xmake/rules/utils/bin2obj/xmake.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/rules/utils/bin2obj/xmake.lua b/xmake/rules/utils/bin2obj/xmake.lua index 13feba930..df76c42a3 100644 --- a/xmake/rules/utils/bin2obj/xmake.lua +++ b/xmake/rules/utils/bin2obj/xmake.lua @@ -21,11 +21,11 @@ rule("utils.bin2obj") set_extensions(".bin") add_orders("utils.bin2obj", "c++.build.modules.builder") - on_preparecmd_file(function (target, batchcmds, sourcefile_bin, opt) + on_buildcmd_file(function (target, batchcmds, sourcefile_bin, opt) -- get object file local objectfile = path.join(target:objectdir(), path.basename(sourcefile_bin) .. ".o") - target:add("objectfiles", objectfile) + table.insert(target:objectfiles(), objectfile) -- add commands batchcmds:show_progress(opt.progress, "${color.build.object}generating.bin2obj %s", sourcefile_bin) |
