Skip to content

Commit

Permalink
Don't use framework kind on non-apple targets
Browse files Browse the repository at this point in the history
  • Loading branch information
roblabla committed Aug 29, 2022
1 parent 20da3e1 commit 63c58d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/core_graphics/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
#![cfg(feature = "core_graphics")]

#[link(name = "CoreGraphics", kind = "framework")]
#[cfg_attr(target_vendor = "apple", link(name = "CoreGraphics", kind = "framework"))]
#[cfg_attr(not(target_vendor = "apple"), link(name = "CoreGraphics"))]
extern "C" {}

mod geometry;
Expand Down
3 changes: 2 additions & 1 deletion src/foundation/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,6 @@ pub type NSTimeInterval = f64;
#[allow(non_upper_case_globals)]
pub const NSNotFound: crate::objc::NSInteger = crate::objc::NSIntegerMax;

#[link(name = "Foundation", kind = "framework")]
#[cfg_attr(target_vendor = "apple", link(name = "Foundation", kind = "framework"))]
#[cfg_attr(not(target_vendor = "apple"), link(name = "Foundation"))]
extern "C" {}

0 comments on commit 63c58d5

Please sign in to comment.