summaryrefslogtreecommitdiff
path: root/xmake/rules/utils/bin2obj/xmake.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/rules/utils/bin2obj/xmake.lua')
-rw-r--r--xmake/rules/utils/bin2obj/xmake.lua8
1 files changed, 1 insertions, 7 deletions
diff --git a/xmake/rules/utils/bin2obj/xmake.lua b/xmake/rules/utils/bin2obj/xmake.lua
index 760b9d536..f461e67ef 100644
--- a/xmake/rules/utils/bin2obj/xmake.lua
+++ b/xmake/rules/utils/bin2obj/xmake.lua
@@ -21,18 +21,12 @@
rule("utils.bin2obj")
set_extensions(".bin")
add_orders("utils.bin2obj", "c++.build.modules.builder")
- on_buildcmd_file(function (target, batchcmds, sourcefile_bin, opt)
+ after_buildcmd_file(function (target, batchcmds, sourcefile_bin, opt)
import("rules.utils.bin2obj.utils", {alias = "bin2obj_utils", rootdir = os.programdir()})
- -- get zeroend (default: false)
- -- check file-level config first, then rule-level config
- local fileconfig = target:fileconfig(sourcefile_bin)
- local zeroend = (fileconfig and fileconfig.zeroend) or target:extraconf("rules", "utils.bin2obj", "zeroend") or false
-
-- convert binary file to object file
local objectfile = bin2obj_utils.generate_objectfile(target, batchcmds, sourcefile_bin, {
progress = opt.progress,
- zeroend = zeroend
})
-- add deps