summaryrefslogtreecommitdiff
path: root/xmake/scripts/tools
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/scripts/tools')
-rw-r--r--xmake/scripts/tools/gcc.lua2
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