[clang] [Clang][Driver] Fix the missing Target-Triple-Level include path resolution in Baremetal Driver (PR #165321)
Petr Hosek via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 19 22:52:08 PST 2025
================
@@ -419,6 +421,12 @@ void BareMetal::AddClangSystemIncludeArgs(const ArgList &DriverArgs,
llvm::sys::path::append(Dir, "include");
addSystemInclude(DriverArgs, CC1Args, Dir.str());
}
+ SmallString<128> Dir = SysRootDir;
----------------
petrhosek wrote:
Nit: I'd use copy constructor over assignment operator for consistency with the existing code.
```suggestion
SmallString<128> Dir(SysRootDir);
```
https://github.com/llvm/llvm-project/pull/165321
More information about the cfe-commits
mailing list