diff options
| author | Josh Stone <jistone@redhat.com> | 2024-04-10 17:25:10 -0700 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2024-04-10 17:25:10 -0700 |
| commit | 8a5409bbdbadb522f25e7e5e3d54b967cb5eee56 (patch) | |
| tree | 3b574da94ca2d3344db85bb4832592be16ef3610 /tests/codegen/array-codegen.rs | |
| parent | 8b2459c1f21187f9792d99310171a15e64feb9cf (diff) | |
| download | rust-8a5409bbdbadb522f25e7e5e3d54b967cb5eee56.tar.gz rust-8a5409bbdbadb522f25e7e5e3d54b967cb5eee56.zip | |
Set the host library path in run-make v2
When the build is configured with `[rust] rpath = false`, we need to set `LD_LIBRARY_PATH` (or equivalent) to what would have been the `RPATH`, so the compiler can find its own libraries. The old `tools.mk` code has this environment prefixed in the `$(BARE_RUSTC)` variable, so we just need to wire up something similar for run-make v2. This is now set while building each `rmake.rs` itself, as well as in the `rust-make-support` helpers for `rustc` and `rustdoc` commands. This is also available in a `set_host_rpath` function for manual commands, like in the `compiler-builtins` test.
Diffstat (limited to 'tests/codegen/array-codegen.rs')
0 files changed, 0 insertions, 0 deletions
