diff options
| author | ruki <[email protected]> | 2015-07-15 11:33:58 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2015-07-15 11:33:58 +0800 |
| commit | 2f55b44e1e3fd6f53ca43b9127d9dd5c49cc1880 (patch) | |
| tree | 226eb2f6b48b51294fe8ef76ee5de050ddeb6558 /xmake/scripts/tools/gcc.lua | |
| parent | 928101a35f7ef42aa96ad76564b1e120066cbb14 (diff) | |
fix strip flags for clang
Diffstat (limited to 'xmake/scripts/tools/gcc.lua')
| -rw-r--r-- | xmake/scripts/tools/gcc.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/scripts/tools/gcc.lua b/xmake/scripts/tools/gcc.lua index 6f96e2f8b..1e4416c48 100644 --- a/xmake/scripts/tools/gcc.lua +++ b/xmake/scripts/tools/gcc.lua @@ -107,8 +107,8 @@ function gcc.init(self, name) , ["-W3"] = "-Wall" -- strip - , ["-s"] = utils.ifelse(isclang, "-S", "-s") - , ["-S"] = "-S" + , ["-s"] = utils.ifelse(isclang, "-Wl,-S", "-s") + , ["-S"] = utils.ifelse(isclang, "-Wl,-S", "-S") -- others , ["-ftrapv"] = self._check |
