Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
gpui: Properly surface errors in gpui build script (#40381)
Lukas Wirth1ee6ef5e1a0b
diff --git a/crates/gpui/build.rs b/crates/gpui/build.rsindex e48594101f9..83aea8a1791 100644--- a/crates/gpui/build.rs+++ b/crates/gpui/build.rs@@ -49,7 +49,7 @@ fn check_wgsl_shaders() {// All clear}Err(e) => {- eprintln!("WGSL shader compilation failed:\n{}", e);+ println!("cargo::error=WGSL shader compilation failed:\n{}", e);process::exit(1);}}@@ -220,8 +220,8 @@ mod macos {.unwrap();if !output.status.success() {- eprintln!(- "metal shader compilation failed:\n{}",+ println!(+ "cargo::error=metal shader compilation failed:\n{}",String::from_utf8_lossy(&output.stderr));process::exit(1);@@ -236,8 +236,8 @@ mod macos {.unwrap();if !output.status.success() {- eprintln!(- "metallib compilation failed:\n{}",+ println!(+ "cargo::error=metallib compilation failed:\n{}",String::from_utf8_lossy(&output.stderr));process::exit(1);@@ -418,15 +418,15 @@ mod windows {if result.status.success() {return;}- eprintln!(- "Shader compilation failed for {}:\n{}",+ println!(+ "cargo::error=Shader compilation failed for {}:\n{}",entry_point,String::from_utf8_lossy(&result.stderr));process::exit(1);}Err(e) => {- eprintln!("Failed to run fxc for {}: {}", entry_point, e);+ println!("cargo::error=Failed to run fxc for {}: {}", entry_point, e);process::exit(1);}}