about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2022-11-01 20:00:37 -0400
committerGitHub <noreply@github.com>2022-11-01 20:00:37 -0400
commit3aae00428155e2b6d21ef638bbed272e49bc11e0 (patch)
treeca9ddf04bdbd7edd444e0df9a4e0ade8863a679d /compiler/rustc_codegen_llvm/src
parent11ebe6512b4c77633c59f8dcdd421df3b79d1a9f (diff)
parentf8a0cc2ca8a644ddb63867526711ba17cb7508c8 (diff)
downloadrust-3aae00428155e2b6d21ef638bbed272e49bc11e0.tar.gz
rust-3aae00428155e2b6d21ef638bbed272e49bc11e0.zip
Rollup merge of #103072 - cuviper:compiletest-path, r=Mark-Simulacrum
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