Skip to content

Commit

Permalink
Extend rather than overwrite RUSTFLAGS when building drivers
Browse files Browse the repository at this point in the history
  • Loading branch information
smoelius committed May 15, 2024
1 parent a71c0ad commit 7662d4c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dylint/src/driver_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ fn build(opts: &opts::Dylint, toolchain: &str, driver: &Path) -> Result<()> {
// behavior causes the driver to have absolute rpaths.
// let rustflags = "-C rpath=yes";
let rustflags = format!(
"-C link-args=-Wl,-rpath,{}/lib",
"{} -C link-args=-Wl,-rpath,{}/lib ",
env::var("RUSTFLAGS").unwrap_or_default(),
toolchain_path.to_string_lossy()
);

Expand Down

0 comments on commit 7662d4c

Please sign in to comment.