From 441731de2ef623c1447278f5e69b41dff5ec6707 Mon Sep 17 00:00:00 2001 From: Junkui Zhang <364772080@qq.com> Date: Tue, 29 Jul 2025 19:59:04 +0800 Subject: [PATCH] fix build.rs --- crates/gpui/build.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/crates/gpui/build.rs b/crates/gpui/build.rs index adc9296b4d2b19df1a55857d8661d1ab8d51dcf1..f619d5b0fb60f26a3fad52e90f7893434c869659 100644 --- a/crates/gpui/build.rs +++ b/crates/gpui/build.rs @@ -11,7 +11,7 @@ fn main() { #[cfg(any( not(any(target_os = "macos", target_os = "windows")), - feature = "macos-blade" + all(target_os = "macos", feature = "macos-blade") ))] check_wgsl_shaders(); @@ -28,8 +28,10 @@ fn main() { }; } -#[allow(dead_code)] -#[cfg(not(target_os = "windows"))] +#[cfg(any( + not(any(target_os = "macos", target_os = "windows")), + all(target_os = "macos", feature = "macos-blade") +))] fn check_wgsl_shaders() { use std::path::PathBuf; use std::process;