diff options
| author | ruki <[email protected]> | 2015-06-06 22:35:48 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2015-06-06 22:35:48 +0800 |
| commit | 7c091cff74f038381c5e16576afeb7d4713bc917 (patch) | |
| tree | dd3490039c2d114c471151819d62144d9549546e /xmake/scripts/platform/windows/tools | |
| parent | 6222a6ede3f06a0c67eccf0225d0ffb88cf9d4c8 (diff) | |
add warning and escape verboses
Diffstat (limited to 'xmake/scripts/platform/windows/tools')
| -rw-r--r-- | xmake/scripts/platform/windows/tools/cl.lua | 5 |
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 |
