fix where fxc.exe

This commit is contained in:
Junkui Zhang 2025-07-29 22:44:05 +08:00
parent 89a863d012
commit 554b36fd3c

View file

@ -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();