Skip to content

Commit

Permalink
Pass correct argument to rustc -Z ls
Browse files Browse the repository at this point in the history
Behavior was changed back in rustc 1.74.

Fixes #2290
  • Loading branch information
Alexandre Lissy committed Nov 21, 2024
1 parent b0a6355 commit 6a8bd56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/rust.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2372,7 +2372,7 @@ impl RlibDepReader {
trace!("Discovering dependencies of {}", rlib.display());

let mut cmd = process::Command::new(&self.executable);
cmd.args(["-Z", "ls"])
cmd.args(["-Z", "ls=root"])
.arg(rlib)
.env_clear()
.envs(env_vars.to_vec())
Expand Down

0 comments on commit 6a8bd56

Please sign in to comment.