diff options
| author | ruki <[email protected]> | 2018-11-13 22:48:36 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-11-13 10:51:40 +0800 |
| commit | 7d234801498d6e272d780407695ebff89a64d675 (patch) | |
| tree | 28313737e1c44c3d639fbf49ab05ed0bc68ec1d4 /xmake/modules/core/tools/clang.lua | |
| parent | bcfe7b269dc8ccca180099c8ce62f333a405ed11 (diff) | |
improve compiler tools
Diffstat (limited to 'xmake/modules/core/tools/clang.lua')
| -rw-r--r-- | xmake/modules/core/tools/clang.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/modules/core/tools/clang.lua b/xmake/modules/core/tools/clang.lua index 67b271da6..c778c28c2 100644 --- a/xmake/modules/core/tools/clang.lua +++ b/xmake/modules/core/tools/clang.lua @@ -32,9 +32,9 @@ function init(self) _super.init(self) -- suppress warning - _super._g.cxflags = {"-Qunused-arguments"} - _super._g.mxflags = {"-Qunused-arguments"} - _super._g.asflags = {"-Qunused-arguments"} + self:add("cxflags", "-Qunused-arguments") + self:add("mxflags", "-Qunused-arguments") + self:add("asflags", "-Qunused-arguments") end -- make the optimize flag |
