Change summary
crates/gpui/build.rs | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
Detailed changes
@@ -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;