================ @@ -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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits