about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src/back/rpath.rs
AgeCommit message (Collapse)AuthorLines
2025-03-25Rename `is_like_osx` to `is_like_darwin`Mads Marquart-2/+2
2024-11-24Support rpath with -Clinker-flavor=ldMads Marquart-23/+11
Using `cc_args` panics when using `-Clinker-flavor=ld`, because the arguments are in a form tailored for `-Clinker-flavor=gcc`. So instead, we use `link_args` and let that wrap the arguments with the appropriate `-Wl` or `-Xlinker` when needed.
2024-09-17Minimize visibilities.Nicholas Nethercote-2/+2
This makes it much clearer which things are used outside the crate.
2024-07-29Reformat `use` declarations.Nicholas Nethercote-2/+3
The previous commit updated `rustfmt.toml` appropriately. This commit is the outcome of running `x fmt --all` with the new formatting options.
2024-07-01linker: Bail out of rpath logic early if the target doesn't support rpathVadim Petrochenkov-6/+0
2024-06-02rustc_codegen_ssa: fix get_rpath_relative_to_output panic when lib only ↵Hai-Hsin-0/+5
contains file name
2024-05-23Remove `#[macro_use] extern crate tracing` from `rustc_codegen_ssa`.Nicholas Nethercote-0/+1
2024-03-28and few moreklensy-4/+4
warning: this argument is a mutable reference, but not used mutably --> compiler\rustc_codegen_ssa\src\back\rpath.rs:80:41 | 80 | fn get_rpath_relative_to_output(config: &mut RPathConfig<'_>, lib: &Path) -> OsString { | ^^^^^^^^^^^^^^^^^^^^ help: consider changing to: `&RPathConfig<'_>` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut warning: this argument is a mutable reference, but not used mutably --> compiler\rustc_codegen_ssa\src\back\rpath.rs:76:42 | 76 | fn get_rpaths_relative_to_output(config: &mut RPathConfig<'_>) -> Vec<OsString> { | ^^^^^^^^^^^^^^^^^^^^ help: consider changing to: `&RPathConfig<'_>` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut warning: this argument is a mutable reference, but not used mutably --> compiler\rustc_codegen_ssa\src\back\rpath.rs:55:23 | 55 | fn get_rpaths(config: &mut RPathConfig<'_>) -> Vec<OsString> { | ^^^^^^^^^^^^^^^^^^^^ help: consider changing to: `&RPathConfig<'_>` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut warning: this argument is a mutable reference, but not used mutably --> compiler\rustc_codegen_ssa\src\back\rpath.rs:15:32 | 15 | pub fn get_rpath_flags(config: &mut RPathConfig<'_>) -> Vec<OsString> { | ^^^^^^^^^^^^^^^^^^^^ help: consider changing to: `&RPathConfig<'_>` | = warning: changing this function will impact semver compatibility = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut
2023-10-06rustc_codegen_ssa: use try_canonicalize in rpathTamir Duberstein-8/+6
This is simpler and avoids unnecessary calls to `env::current_dir`.
2023-08-03Handle non-utf8 rpaths (fix FIXME)Martin Nordholts-15/+21
2023-07-30inline format!() args up to and including rustc_codegen_llvmMatthias Krüger-1/+1
2021-12-17pass -Wl,-z,origin to set DF_ORIGIN when using rpathSébastien Marie-1/+4
DF_ORIGIN flag signifies that the object being loaded may make reference to the $ORIGIN substitution string. Some implementations are just ignoring DF_ORIGIN and do substitution for $ORIGIN if present (whatever DF_ORIGIN pr Set the flag inconditionally if rpath is wanted.
2021-07-05Remove LibSourcebjorn3-12/+7
The information is stored in used_crate_source too anyway
2021-06-05Remove get_install_prefix_lib_path completelybjorn3-23/+4
It was broken anyway for rustup installs and nobody seems to have noticed.
2021-03-03Fix testsRyan Levick-1/+1
2020-08-30mv compiler to compiler/mark-0/+135