diff options
| author | ruki <[email protected]> | 2025-12-07 12:19:22 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-12-07 17:15:59 +0800 |
| commit | 282349621e4e7c02fa3cb7a6df2d523fbba3c9d7 (patch) | |
| tree | 22ab80762e4630384ddbe719d083ce39942da9c8 /xmake/rules/utils/bin2obj/xmake.lua | |
| parent | 774c5110ef60f2878d3a2f503c7a55db4943a1cb (diff) | |
add file zeroend support
Diffstat (limited to 'xmake/rules/utils/bin2obj/xmake.lua')
| -rw-r--r-- | xmake/rules/utils/bin2obj/xmake.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/rules/utils/bin2obj/xmake.lua b/xmake/rules/utils/bin2obj/xmake.lua index 53ceb6a51..d35e50606 100644 --- a/xmake/rules/utils/bin2obj/xmake.lua +++ b/xmake/rules/utils/bin2obj/xmake.lua @@ -48,7 +48,9 @@ rule("utils.bin2obj") local symbol_prefix = target:extraconf("rules", "utils.bin2obj", "symbol_prefix") or "_binary_" -- get zeroend (default: false) - local zeroend = target:extraconf("rules", "utils.bin2obj", "zeroend") or 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 -- get architecture local arch = target:arch() |
