diff options
| author | ruki <[email protected]> | 2023-05-31 23:36:40 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-05-31 23:36:40 +0800 |
| commit | 068a8296f6e7f1b3dab18b81efc7a46f4874af58 (patch) | |
| tree | 458b74703304a4315d546abe1f06af4cf9932c3c | |
| parent | 58e9452677447ca8835e9bec4b67297d3488e753 (diff) | |
add nozeroend for bin2c #3798
| -rw-r--r-- | xmake/rules/utils/bin2c/xmake.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/rules/utils/bin2c/xmake.lua b/xmake/rules/utils/bin2c/xmake.lua index 3e5e9144d..5d0dbfd31 100644 --- a/xmake/rules/utils/bin2c/xmake.lua +++ b/xmake/rules/utils/bin2c/xmake.lua @@ -43,6 +43,10 @@ rule("utils.bin2c") table.insert(argv, "-w") table.insert(argv, tostring(linewidth)) end + local nozeroend = target:extraconf("rules", "utils.bin2c", "nozeroend") + if nozeroend then + table.insert(argv, "--nozeroend") + end batchcmds:vrunv(os.programfile(), argv, {envs = {XMAKE_SKIP_HISTORY = "y"}}) -- add deps |
