fix build.rs

This commit is contained in:
Junkui Zhang 2025-07-29 19:59:04 +08:00
parent ead7a1e1f0
commit 441731de2e

View file

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