diff --git a/crates/gpui/build.rs b/crates/gpui/build.rs index f619d5b0fb60f26a3fad52e90f7893434c869659..912efabe37c4797634c3f7c81731b131be8d9b88 100644 --- a/crates/gpui/build.rs +++ b/crates/gpui/build.rs @@ -322,7 +322,11 @@ mod windows { } // Try to find in PATH - if let Ok(output) = std::process::Command::new("where").arg("fxc.exe").output() { + // NOTE: This has to be `where.exe` on Windows, not `which` + if let Ok(output) = std::process::Command::new("where.exe") + .arg("fxc.exe") + .output() + { if output.status.success() { let path = String::from_utf8_lossy(&output.stdout); return path.trim().to_string();