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;