[lld] [lld-macho]Fix bug in finding "chained" re-exported libs. (PR #135241)
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 11 11:10:14 PDT 2025
================
@@ -1678,9 +1689,16 @@ static bool isImplicitlyLinked(StringRef path) {
void DylibFile::loadReexport(StringRef path, DylibFile *umbrella,
const InterfaceFile *currentTopLevelTapi) {
DylibFile *reexport = findDylib(path, umbrella, currentTopLevelTapi);
- if (!reexport)
- error(toString(this) + ": unable to locate re-export with install name " +
- path);
+ if (!reexport) {
+ // If not found in umbrella, retry since some rpaths might have been
+ // defined in "this" dyblib (which contains the LC_REEXPORT_DYLIB cmd) and
----------------
nico wrote:
typo dyblib
https://github.com/llvm/llvm-project/pull/135241
More information about the llvm-commits
mailing list