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: f76c7367c6/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
This commit is contained in:
Guillaume Gomez 2025-05-07 18:19:09 +02:00 committed by GitHub
commit 46c1c1ff0b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

Diff Content Not Available