diff options
| author | ruki <[email protected]> | 2022-02-19 22:30:38 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-02-19 22:30:38 +0800 |
| commit | 005a664f5b3ef7b833ab7b4afdb41583d56b6811 (patch) | |
| tree | 8080d7acdc672cccbe428020c1e56dea2dcfb35a /xmake/modules/core/tools/zig_cc.lua | |
| parent | 43af40334dae383707c15ec731d515cd3ac6b834 (diff) | |
improve zig cc
Diffstat (limited to 'xmake/modules/core/tools/zig_cc.lua')
| -rw-r--r-- | xmake/modules/core/tools/zig_cc.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/xmake/modules/core/tools/zig_cc.lua b/xmake/modules/core/tools/zig_cc.lua index 1e263a4f6..8fefb0f97 100644 --- a/xmake/modules/core/tools/zig_cc.lua +++ b/xmake/modules/core/tools/zig_cc.lua @@ -21,3 +21,12 @@ -- inherit gcc inherit("gcc") +-- make the strip flag +function nf_strip(self, level, target) + local maps = { + debug = "-Wl,-S" + , all = "-s" + } + return maps[level] +end + |
