about summary refs log tree commit diff
path: root/compiler/rustc_builtin_macros/src/concat_bytes.rs
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2025-05-07 18:19:09 +0200
committerGitHub <noreply@github.com>2025-05-07 18:19:09 +0200
commit5e5043d7331f992ad91d199f9f89c4914edad043 (patch)
treec9f33d21313ceb7511d23733add99efad6548481 /compiler/rustc_builtin_macros/src/concat_bytes.rs
parent2f0a19adf1f648b86c48005b2d257f619818742c (diff)
parentcd2dc67eadb6105790520223965deef6c5887f7a (diff)
downloadrust-5e5043d7331f992ad91d199f9f89c4914edad043.tar.gz
rust-5e5043d7331f992ad91d199f9f89c4914edad043.zip
Rollup merge of #140745 - jchecahi:run-make-support-cargo-rustc-dylib, r=jieyouxu
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-L43

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_builtin_macros/src/concat_bytes.rs')
0 files changed, 0 insertions, 0 deletions