summaryrefslogtreecommitdiff
path: root/xmake/scripts/base/compiler.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/base/compiler.lua
parentb02e5fc9da96945b0be2452bdbbf5b9801e68b69 (diff)
compile for android and ios ok
Diffstat (limited to 'xmake/scripts/base/compiler.lua')
-rw-r--r--xmake/scripts/base/compiler.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmake/scripts/base/compiler.lua b/xmake/scripts/base/compiler.lua
index bbbc671b6..9a2f9eb43 100644
--- a/xmake/scripts/base/compiler.lua
+++ b/xmake/scripts/base/compiler.lua
@@ -186,6 +186,8 @@ function compiler._addflags_from_target(module, flags, flagnames, target)
-- add the warning flags from the current project
table.join2(flags, compiler._getflags(module, target.warnings, { none = "-w"
+ , less = "-W1"
+ , more = "-W3"
, all = "-Wall"
, error = "-Werror"
}))