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

Nick Desaulniers via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 26 08:47:40 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) {
----------------
nickdesaulniers wrote:

Is `Target` the only thing you're capturing here? Perhaps just pass it in at the lambda invocation site?

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


More information about the cfe-commits mailing list