about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/context.rs
diff options
context:
space:
mode:
authorJesus Checa Hidalgo <jchecahi@redhat.com>2025-05-07 16:32:46 +0200
committerJesus Checa Hidalgo <jchecahi@redhat.com>2025-05-07 16:32:46 +0200
commitcd2dc67eadb6105790520223965deef6c5887f7a (patch)
tree6a2fbc36bbf52463c87b34d2ec36a053d8598ece /compiler/rustc_codegen_llvm/src/context.rs
parent891b8525477f5c41a9e56d7b70d64b41e7c344e3 (diff)
downloadrust-cd2dc67eadb6105790520223965deef6c5887f7a.tar.gz
rust-cd2dc67eadb6105790520223965deef6c5887f7a.zip
run-make-support: set rustc dylib path for cargo wrapper
Some run-make tests invoke Cargo via run_make_support::cargo(), but fail to
execute correctly when rustc is built without rpath. In these setups, runtime
loading of rustc’s shared libraries fails unless the appropriate dynamic library
path is set manually.

This commit updates the cargo() wrapper to call set_host_compiler_dylib_path(),
aligning its behavior with the existing rustc() wrapper:
https://github.com/rust-lang/rust/blob/f76c7367c6363d33ddb5a93b5de0d158b2d827f6/src/tools/run-make-support/src/external_deps/rustc.rs#L39

This ensures that Cargo invocations during tests inherit the necessary dylib
paths, avoiding errors related to missing shared libraries in rpath-less builds.

Fixes part of #140738
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/context.rs')
0 files changed, 0 insertions, 0 deletions