summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2021-09-23 20:57:32 +0800
committerGitHub <[email protected]>2021-09-23 20:57:32 +0800
commitfbccc2375dba05f227ff8e6ec0b61c9357ca449d (patch)
treed2af4bba8858fb038d70bf368156b9599af6e134
parent6708849f5c386a5d16f7be3d568afa10df49bc16 (diff)
Update gcc.lua
-rw-r--r--xmake/modules/core/tools/gcc.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua
index 713cd80aa..8d404f2dc 100644
--- a/xmake/modules/core/tools/gcc.lua
+++ b/xmake/modules/core/tools/gcc.lua
@@ -113,8 +113,8 @@ function nf_warning(self, level)
, less = "-Wall"
, more = "-Wall"
, all = "-Wall"
- , allextra = "-Wall -Wextra"
- , everything = "-Wall -Wextra -Weffc++"
+ , allextra = {"-Wall", "-Wextra"}
+ , everything = self:kind() == "cxx" and {"-Wall", "-Wextra", "-Weffc++"} or {"-Wall", "-Wextra"}
, error = "-Werror"
}
return maps[level]