-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Fix broken-pipe-no-ice run-make test for rpath-less builds #140744
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
tests/run-make/broken-pipe-no-ice currently fails to run when rpath is disabled in bootstrap config, as the rustc and rustdoc binaries invoked cannot find the required shared libs (librustc_driver.so). This commit manually sets the dylib search path for both commands. The logic mirrors what's implemented in run_make_support::util::set_host_compiler_dylib_path, ensuring that the host compiler’s shared libraries are available at runtime even when rpath is disabled. This is necessary because the test manually constructs the rustc/rustdoc Command instances instead of using the run_make_support wrappers, and would otherwise lack the dynamic linker environment setup. Fixes part of rust-lang#140738
This PR modifies cc @jieyouxu |
I feel like I wrote the initial version of this test 🤔 AFAIK, this should just use the |
@rustbot author |
Reminder, once the PR becomes ready for a review, use |
Hi @jieyouxu, thanks for reviewing the PR! Actually, that was the first thing I tried 🙂 — I initially attempted to use the Because of that, I figured the test was intentionally written using a bare Command::new(...), and I mirrored the logic of Happy to explore alternatives if there's a clean way to use the wrappers here! |
D'oh right, that's why 😆 Can you try instead of reimplementing
|
Right, I went ahead and tried exposing Maybe adapting That being said, I’m happy to further discuss or explore any other suggestions you may have. Let me know what you think! |
Let me play around a bit with this locally, I'll get back to u tmrw. |
@rustbot review |
tests/run-make/broken-pipe-no-ice
currently fails to run when rpath is disabled in bootstrap config, as the rustc and rustdoc binaries invoked cannot find the required shared libs (librustc_driver.so).This commit manually sets the dylib search path for both commands. The logic mirrors what's implemented in
run_make_support::util::set_host_compiler_dylib_path
, ensuring that the host compiler’s shared libraries are available at runtime even when rpath is disabled.This is necessary because the test manually constructs the rustc/rustdoc
Command
instances instead of using therun_make_support
wrappers, and would otherwise lack the dynamic linker environment setup.Fixes part of #140738