about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2023-03-21 13:41:28 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2023-03-21 13:41:28 +0000
commit76a1cfb0e6de9ed52fbab53fcfdd669f4a680d8b (patch)
tree44a0f56f7fe283589df706abd9012dece5d6f519
parent74e865904c1d5bd65f0180e6243b3b370720b4ba (diff)
downloadrust-76a1cfb0e6de9ed52fbab53fcfdd669f4a680d8b.tar.gz
rust-76a1cfb0e6de9ed52fbab53fcfdd669f4a680d8b.zip
Give an error if any of the wrappers can't find cargo, rustc or rustdoc
Fixes #1364
-rw-r--r--scripts/cargo-clif.rs2
-rw-r--r--scripts/rustc-clif.rs2
-rw-r--r--scripts/rustdoc-clif.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/scripts/cargo-clif.rs b/scripts/cargo-clif.rs
index 939a1f1ca59..e2db7d03a9d 100644
--- a/scripts/cargo-clif.rs
+++ b/scripts/cargo-clif.rs
@@ -64,7 +64,7 @@ fn main() {
     };
 
     #[cfg(unix)]
-    Command::new("cargo").args(args).exec();
+    panic!("Failed to spawn cargo: {}", Command::new("cargo").args(args).exec());
 
     #[cfg(not(unix))]
     std::process::exit(
diff --git a/scripts/rustc-clif.rs b/scripts/rustc-clif.rs
index b9bba7f2e08..25156f05edd 100644
--- a/scripts/rustc-clif.rs
+++ b/scripts/rustc-clif.rs
@@ -30,7 +30,7 @@ fn main() {
     env::set_var("RUSTUP_TOOLCHAIN", env!("TOOLCHAIN_NAME"));
 
     #[cfg(unix)]
-    Command::new("rustc").args(args).exec();
+    panic!("Failed to spawn rustc: {}", Command::new("rustc").args(args).exec());
 
     #[cfg(not(unix))]
     std::process::exit(
diff --git a/scripts/rustdoc-clif.rs b/scripts/rustdoc-clif.rs
index 167631eaf7e..6081dddb2d3 100644
--- a/scripts/rustdoc-clif.rs
+++ b/scripts/rustdoc-clif.rs
@@ -30,7 +30,7 @@ fn main() {
     env::set_var("RUSTUP_TOOLCHAIN", env!("TOOLCHAIN_NAME"));
 
     #[cfg(unix)]
-    Command::new("rustdoc").args(args).exec();
+    panic!("Failed to spawn rustdoc: {}", Command::new("rustdoc").args(args).exec());
 
     #[cfg(not(unix))]
     std::process::exit(