From 240a10a2644e39c099ff06d59b88d8e4369b05e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Kr=C3=B6ning?= Date: Tue, 12 Nov 2024 18:11:23 +0100 Subject: [PATCH] fix(xtask): build docs for each arch separately MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin Kröning --- xtask/src/doc.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/xtask/src/doc.rs b/xtask/src/doc.rs index 7d7adddcb9..57ffadfc12 100644 --- a/xtask/src/doc.rs +++ b/xtask/src/doc.rs @@ -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(()) } }