Skip to content

Commit

Permalink
Pass the current shell width to rustc
Browse files Browse the repository at this point in the history
  • Loading branch information
estebank committed Sep 22, 2019
1 parent 7d2b578 commit d1e8e58
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/cargo/ops/cargo_compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,12 @@ pub fn compile_ws<'a>(
}
}
}
if let Some(width) = config.shell().err_width() {
for unit in &units {
bcx.extra_compiler_args
.insert(*unit, vec![format!("-Zterminal-width={}", width)]);
}
}

let unit_dependencies = build_unit_dependencies(
&bcx,
Expand Down

0 comments on commit d1e8e58

Please sign in to comment.