Revert "ignore target lib dirs when invoked with -feach-lib-rpath"

This reverts commit 3701697a0a.

The commit introduced a regression when building stage2 on nixOS where
the linker would fail to find relevant LLVM dynamic libraries as some
search dirs were missing.
This commit is contained in:
Jakub Konka
2022-03-22 20:44:14 +01:00
parent 3701697a0a
commit b74f292410

View File

@@ -2197,6 +2197,10 @@ fn buildOutputType(
clang_argv.appendAssumeCapacity(framework_dir);
framework_dirs.appendAssumeCapacity(framework_dir);
}
for (paths.lib_dirs.items) |lib_dir| {
try lib_dirs.append(lib_dir);
}
for (paths.rpaths.items) |rpath| {
try rpath_list.append(rpath);
}