summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2016-08-09 19:52:28 +0800
committerruki <[email protected]>2016-08-09 19:52:28 +0800
commit25c1b15db3d22641ad7301d199a2f83cfc109db5 (patch)
treef6f9d2fccb584c7d50a1b86936cc863086ca3ab9
parent5f08462456ae611c8b8344f85a0650dcd40663dc (diff)
fix strip bug for macosx
-rwxr-xr-xxmake/tools/clang.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/xmake/tools/clang.lua b/xmake/tools/clang.lua
index 62866b0c6..0c426f09a 100755
--- a/xmake/tools/clang.lua
+++ b/xmake/tools/clang.lua
@@ -43,3 +43,16 @@ function init(shellname, kind)
end
+-- make the strip flag
+function strip(level)
+
+ -- the maps
+ local maps =
+ {
+ debug = "-Wl,-S"
+ , all = "-Wl,-S"
+ }
+
+ -- make it
+ return maps[level] or ""
+end