[clang] [compiler-rt] Change compiler-rt lib search path for Hexagon-linux (PR #154530)

Brian Cain via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 21 09:10:55 PDT 2025


================
@@ -547,11 +548,8 @@ HexagonToolChain::getSmallDataThreshold(const ArgList &Args) {
 }
 
 std::string HexagonToolChain::getCompilerRTPath() const {
-  SmallString<128> Dir(getDriver().SysRoot);
-  llvm::sys::path::append(Dir, "usr", "lib");
-  if (!SelectedMultilibs.empty()) {
-    Dir += SelectedMultilibs.back().gccSuffix();
-  }
----------------
androm3da wrote:

> also if this is merged, i will create a PR to toolchain_for_hexagon repo to accommodate the changes here

Don't wait: create this PR now.  I want to see something working before we merge what looks like breaking changes.  If this change is mutually dependent on a change to how the toolchain is built, let's see that working before making this change.

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


More information about the cfe-commits mailing list