Skip to content
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

Set the host library path in run-make v2 #123763

Merged
merged 2 commits into from
Apr 12, 2024

Commits on Apr 11, 2024

  1. 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.
    cuviper committed Apr 11, 2024
    Configuration menu
    Copy the full SHA
    8a5409b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7e171c7 View commit details
    Browse the repository at this point in the history