[clang] [clang] Support --sysroot= for ${arch}-windows-msvc targets (PR #96417)

Petr Hosek via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 20 23:08:59 PDT 2026


================
@@ -98,20 +98,14 @@ class ToolChain {
   using path_list = SmallVector<std::string, 16>;
 
   enum CXXStdlibType {
-    CST_Libcxx,
-    CST_Libstdcxx
+    CST_Libcxx,    // LLVM libc++
+    CST_Libstdcxx, // GNU libstdc++
+    CST_Msvcstl,   // MSVC STL
   };
 
-  enum RuntimeLibType {
-    RLT_CompilerRT,
-    RLT_Libgcc
-  };
+  enum RuntimeLibType { RLT_CompilerRT, RLT_Libgcc, RLT_Vcruntime };
----------------
petrhosek wrote:

I think this should be spelled as `RLT_VCRuntime`.

https://github.com/llvm/llvm-project/pull/96417


More information about the cfe-commits mailing list