Skip to content

Commit 862f33e

Browse files
committed
Also install the symlink
1 parent bb1d57b commit 862f33e

File tree

1 file changed

+5
-2
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+5
-2
lines changed

src/bootstrap/src/core/build_steps/dist.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2027,9 +2027,12 @@ fn install_llvm_file(builder: &Builder<'_>, source: &Path, destination: &Path) {
20272027
}
20282028

20292029
if source.is_symlink() {
2030-
// Follow symlinks. E.g. if we're linking against libLLVM-18.so, then what gets loaded
2031-
// at runtime is libLLVM.so.18.1.
2030+
// If we have a symlink like libLLVM-18.so -> libLLVM.so.18.1, install both the target
2031+
// and the symlink. The target is what will get loaded at runtime. The symlink is what
2032+
// will be used for linking when download-ci-llvm is used.
20322033
builder.install(&t!(fs::canonicalize(source)), destination, 0o644);
2034+
let full_dest = destination.join(source.file_name().unwrap());
2035+
builder.copy(&source, &full_dest);
20332036
} else {
20342037
builder.install(&source, destination, 0o644);
20352038
}

0 commit comments

Comments
 (0)