Baremetal toolchain is not adding sysroot/lib to the library
search path. This is forcing the user to do it manually. This commit
fixes this shortcoming by adding the sysroot/lib to library search path
if sysroot is not empty.
Details
Details
- Reviewers
 jroelofs - Group Reviewers
 Restricted Project - Commits
 - rG8cdc53887387: Add sysroot/lib to library search path of baremetal toolchain.
 
Diff Detail
Diff Detail
- Repository
 - rG LLVM Github Monorepo
 
Event Timeline
| clang/lib/Driver/ToolChains/BareMetal.cpp | ||
|---|---|---|
| 39 | Is the explicit std::string ctor call necessary here? Since SmallString has an operator std::string() const, I think this can just be: getFilePaths().push_back(SysRoot);  | |
| clang/lib/Driver/ToolChains/BareMetal.cpp | ||
|---|---|---|
| 39 | That operator is explicit. Although I noticed that I did not need the str() call.  | |
Is the explicit std::string ctor call necessary here? Since SmallString has an operator std::string() const, I think this can just be: