summaryrefslogtreecommitdiff
path: root/xmake/scripts/tools/gcc.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2015-06-16 14:26:32 +0800
committerruki <[email protected]>2015-06-16 14:26:32 +0800
commit608602d0de1056f856e0b6bfe33b3f5fbe641b63 (patch)
tree845abda197164395b6ed071045d48a15c2b3e201 /xmake/scripts/tools/gcc.lua
parentb02e5fc9da96945b0be2452bdbbf5b9801e68b69 (diff)
compile for android and ios ok
Diffstat (limited to 'xmake/scripts/tools/gcc.lua')
-rw-r--r--xmake/scripts/tools/gcc.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/scripts/tools/gcc.lua b/xmake/scripts/tools/gcc.lua
index 079a6e932..6a5fc9d82 100644
--- a/xmake/scripts/tools/gcc.lua
+++ b/xmake/scripts/tools/gcc.lua
@@ -99,6 +99,11 @@ function gcc.init(self, name)
, ["-mavx2"] = self._check
, ["-mfpu=.*"] = self._check
+ -- warnings
+ , ["-W1"] = "-Wall"
+ , ["-W2"] = "-Wall"
+ , ["-W3"] = "-Wall"
+
-- others
, ["-ftrapv"] = self._check
, ["-fsanitize=address"] = self._check