[clang] [clang] Support --sysroot= for ${arch}-windows-msvc targets (PR #96417)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 1 05:33:29 PDT 2024
================
@@ -1290,6 +1296,9 @@ void ToolChain::AddCXXStdlibLibArgs(const ArgList &Args,
case ToolChain::CST_Libstdcxx:
CmdArgs.push_back("-lstdc++");
break;
+
+ default:
----------------
zmodem wrote:
Let's spell out the CST_Stl case explicitly and avoid a default case. That way -Wswitch-enum will fire in the future if a new enum gets added.
https://github.com/llvm/llvm-project/pull/96417
More information about the cfe-commits
mailing list