summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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