summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2021-10-28 19:48:49 +0800
committerGitHub <[email protected]>2021-10-28 19:48:49 +0800
commitefae56f4b2f474611ecfc91efb0c79720389a97d (patch)
treeee678f78047060463bc46cae4918a1cc3390afb4
parent5dfb6ef01df389dbfa8d5cbb12128caf6a655d1f (diff)
parent3b0024764afaa0391b903059a0215c638cb03e85 (diff)
Merge pull request #1783 from SirLynix/patch-6
MSVC: Add flag conversion for Wswitch and Wswitch-enum
-rw-r--r--xmake/modules/core/tools/cl.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua
index 9e9f38ab8..acf99529f 100644
--- a/xmake/modules/core/tools/cl.lua
+++ b/xmake/modules/core/tools/cl.lua
@@ -62,6 +62,8 @@ function init(self)
, ["-W2"] = "-W2"
, ["-W3"] = "-W3"
, ["-Werror"] = "-WX"
+ , ["-Wswitch"] = "-we4062"
+ , ["-Wswitch-enum"] = "-we4061"
, ["%-Wno%-error=.*"] = ""
, ["%-fno%-.*"] = ""