[clang] [Driver] Support using toolchain libc and libc++ for baremetal (PR #96736)

Petr Hosek via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 27 00:44:32 PDT 2024


================
@@ -296,6 +300,47 @@ void BareMetal::AddClangCXXStdlibIncludeArgs(const ArgList &DriverArgs,
     return;
 
   const Driver &D = getDriver();
+  std::string Target = getTripleString();
+
+  auto AddCXXIncludePath = [&](StringRef Path) {
----------------
petrhosek wrote:

No, we also need `this` for `detectLibcxxVersion`, `DriverArgs` and `CC1Args`.

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


More information about the cfe-commits mailing list