Skip to content

Commit d0d7a29

Browse files
committed
Don't use framework kind on non-apple targets
1 parent 20da3e1 commit d0d7a29

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/core_graphics/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
88
#![cfg(feature = "core_graphics")]
99

10-
#[link(name = "CoreGraphics", kind = "framework")]
10+
#[cfg_attr(target_vendor = "apple", link(name = "CoreGraphics", kind = "framework"))]
11+
#[cfg_attr(not(target_vendor = "apple"), link(name = "CoreGraphics"))]
1112
extern "C" {}
1213

1314
mod geometry;

0 commit comments

Comments
 (0)