Skip to content

Commit

Permalink
xtask: Propagate --timings to cargo doc.
Browse files Browse the repository at this point in the history
  • Loading branch information
kpreid committed Aug 3, 2024
1 parent 5423697 commit 2286195
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/xtask/src/xtask.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,11 @@ fn main() -> Result<(), ActionError> {
// libraries with docs elsewhere.
if config.scope.includes_main_workspace() {
let _t = CaptureTime::new(&mut time_log, "doc");
cargo().env("RUSTDOCFLAGS", "-Dwarnings").arg("doc").run()?;
cargo()
.env("RUSTDOCFLAGS", "-Dwarnings")
.arg("doc")
.args(config.cargo_build_args())
.run()?;
}
}
XtaskCommand::Fmt => {
Expand Down

0 comments on commit 2286195

Please sign in to comment.