diff options
| author | ruki <[email protected]> | 2015-06-12 12:30:56 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2015-06-12 12:30:56 +0800 |
| commit | 99b9eb72c8db9854311fc0b5a79e07f8cae85242 (patch) | |
| tree | 837868dffc057d9a987ac4dc0592d98b015563c2 /xmake/scripts/tools/gcc.lua | |
| parent | 1678ef146c122b8a38a4485262f43b816230aa0f (diff) | |
modify platform and probe toolchains
Diffstat (limited to 'xmake/scripts/tools/gcc.lua')
| -rw-r--r-- | xmake/scripts/tools/gcc.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xmake/scripts/tools/gcc.lua b/xmake/scripts/tools/gcc.lua index 8a5e40ff3..e54442f9a 100644 --- a/xmake/scripts/tools/gcc.lua +++ b/xmake/scripts/tools/gcc.lua @@ -74,6 +74,8 @@ function gcc.init(self, name) -- suppress warning for the ccache bug if name:find("clang") and config.get("ccache") then + self.cxflags = self.cxflags or {} + self.mxflags = self.mxflags or {} table.join2(self.cxflags, "-Qunused-arguments") table.join2(self.mxflags, "-Qunused-arguments") end |
