From 554b36fd3c4ca4b752e2b65f889762c21cc6ced4 Mon Sep 17 00:00:00 2001 From: Junkui Zhang <364772080@qq.com> Date: Tue, 29 Jul 2025 22:44:05 +0800 Subject: [PATCH] fix `where fxc.exe` --- crates/gpui/build.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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();