diff options
| author | ruki <[email protected]> | 2021-12-24 22:38:21 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-12-24 22:38:21 +0800 |
| commit | 058005193f33d0461bbe2ee11428ce41d4cd3083 (patch) | |
| tree | b57a2afab2a6b1ccb7614cfc622fc5757aba5dbc | |
| parent | 7107a90f0a830af0818b41815e5eaec001e7f8a6 (diff) | |
improve strip for gcc
| -rw-r--r-- | xmake/modules/core/tools/gcc.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua index a871f62e5..40d3b8a4e 100644 --- a/xmake/modules/core/tools/gcc.lua +++ b/xmake/modules/core/tools/gcc.lua @@ -76,13 +76,13 @@ function init(self) end -- make the strip flag -function nf_strip(self, level) +function nf_strip(self, level, target) local maps = { debug = "-Wl,-S" , all = "-s" } - if is_plat("macosx") or is_plat("iphoneos") then + if target:is_plat("macosx") or target:is_plat("iphoneos") then maps.all = "-Wl,-x" end return maps[level] |
