diff --git a/wgpu-hal/src/metal/surface.rs b/wgpu-hal/src/metal/surface.rs index 8101d52969..3b25e55729 100644 --- a/wgpu-hal/src/metal/surface.rs +++ b/wgpu-hal/src/metal/surface.rs @@ -17,7 +17,7 @@ use objc::{ use parking_lot::Mutex; #[cfg(target_os = "macos")] -#[link(name = "QuartzCore", kind = "framework")] +#[cfg_attr(feature = "link", link(name = "QuartzCore", kind = "framework"))] extern "C" { #[allow(non_upper_case_globals)] static kCAGravityTopLeft: *mut Object;