From 34174fac08df5224907418f63563292707d11fa2 Mon Sep 17 00:00:00 2001
From: Aaron Councilman <aaronjc4@illinois.edu>
Date: Sun, 17 Nov 2024 10:36:20 -0600
Subject: [PATCH] Add more useful error message if clang is missing

---
 hercules_opt/src/pass.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hercules_opt/src/pass.rs b/hercules_opt/src/pass.rs
index 81617169..cb56f709 100644
--- a/hercules_opt/src/pass.rs
+++ b/hercules_opt/src/pass.rs
@@ -676,7 +676,7 @@ impl PassManager {
                         .stdin(Stdio::piped())
                         .stdout(Stdio::piped())
                         .spawn()
-                        .unwrap();
+                        .expect("Error running clang. Is it installed?");
                     assert!(clang_process.wait().unwrap().success());
                     println!("{}", output_archive);
 
-- 
GitLab