summaryrefslogtreecommitdiff
path: root/xmake/scripts/platform/windows/tools
diff options
context:
space:
mode:
authorruki <[email protected]>2015-06-06 22:35:48 +0800
committerruki <[email protected]>2015-06-06 22:35:48 +0800
commit7c091cff74f038381c5e16576afeb7d4713bc917 (patch)
treedd3490039c2d114c471151819d62144d9549546e /xmake/scripts/platform/windows/tools
parent6222a6ede3f06a0c67eccf0225d0ffb88cf9d4c8 (diff)
add warning and escape verboses
Diffstat (limited to 'xmake/scripts/platform/windows/tools')
-rw-r--r--xmake/scripts/platform/windows/tools/cl.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/scripts/platform/windows/tools/cl.lua b/xmake/scripts/platform/windows/tools/cl.lua
index 9feda6e98..fe962427a 100644
--- a/xmake/scripts/platform/windows/tools/cl.lua
+++ b/xmake/scripts/platform/windows/tools/cl.lua
@@ -40,10 +40,15 @@ function cl.init(name)
-- init flags map
cl.mapflags =
{
+ -- optimize
["-O0"] = "-Od"
, ["-O3"] = "-Ot"
, ["-Ofast"] = "-Ox"
, ["-fomit-frame-pointer"] = "-Oy"
+
+ -- warning
+ , ["-Werror"] = "-WX"
+ , ["%-Wno%-error=(.*)"] = ""
}
end