Skip to content

Commit

Permalink
fix(xtask): build docs for each arch separately
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Kröning <[email protected]>
  • Loading branch information
mkroening committed Nov 12, 2024
1 parent 4f73bfb commit 240a10a
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions xtask/src/doc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,13 @@ impl Doc {
pub fn run(self) -> Result<()> {
let sh = crate::sh()?;

let mut doc = cmd!(
sh,
"cargo doc --package hermit-kernel --no-deps --document-private-items"
);

for arch in Arch::all() {
arch.install()?;
let triple = arch.triple();
doc = doc.arg(format!("--target={triple}"));
cmd!(sh, "cargo doc --package hermit-kernel --no-deps --document-private-items --target={triple}")
.run()?;
}

doc.run()?;

Ok(())
}
}

0 comments on commit 240a10a

Please sign in to comment.