diff options
| author | Josh Stone <jistone@redhat.com> | 2022-10-14 16:11:28 -0700 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2022-10-29 17:58:02 -0700 |
| commit | f8a0cc2ca8a644ddb63867526711ba17cb7508c8 (patch) | |
| tree | 92346ba9b77be9c75e7723dc3b0cf2c7004d1d84 /compiler/rustc_codegen_llvm/src | |
| parent | 5e9772042948002f9c6f60c4c81603170035fffa (diff) | |
| download | rust-f8a0cc2ca8a644ddb63867526711ba17cb7508c8.tar.gz rust-f8a0cc2ca8a644ddb63867526711ba17cb7508c8.zip | |
compiletest: set the dylib path when gathering target cfg
If the compiler is built with `rpath = false`, then it won't find its
own libraries unless the library search path is set. We already do that
while running the actual compiletests, but #100260 added another rustc
command for getting the target cfg.
Check compiletest suite=codegen mode=codegen (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
thread 'main' panicked at 'error: failed to get cfg info from "[...]/build/x86_64-unknown-linux-gnu/stage1/bin/rustc"
--- stdout
--- stderr
[...]/build/x86_64-unknown-linux-gnu/stage1/bin/rustc: error while loading shared libraries: librustc_driver-a2a76dc626cd02d2.so: cannot open shared object file: No such file or directory
', src/tools/compiletest/src/common.rs:476:13
Now the library path is set here as well, so it works without rpath.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
