From 25c1b15db3d22641ad7301d199a2f83cfc109db5 Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 9 Aug 2016 19:52:28 +0800 Subject: fix strip bug for macosx --- xmake/tools/clang.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 -- cgit v1.3.1