summaryrefslogtreecommitdiffstats
path: root/vendor/core-foundation-sys/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/core-foundation-sys/src/lib.rs')
-rw-r--r--vendor/core-foundation-sys/src/lib.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/vendor/core-foundation-sys/src/lib.rs b/vendor/core-foundation-sys/src/lib.rs
index f9a188416..48c08878b 100644
--- a/vendor/core-foundation-sys/src/lib.rs
+++ b/vendor/core-foundation-sys/src/lib.rs
@@ -10,6 +10,16 @@
#![cfg_attr(all(feature="mac_os_10_7_support", feature="mac_os_10_8_features"), feature(linkage))] // back-compat requires weak linkage
+// Link to CoreFoundation on any Apple device.
+//
+// We don't use `target_vendor` since that is going to be deprecated:
+// https://github.com/rust-lang/lang-team/issues/102
+#[cfg_attr(
+ any(target_os = "macos", target_os = "ios", target_os = "tvos"),
+ link(name = "CoreFoundation", kind = "framework")
+)]
+extern "C" {}
+
pub mod array;
pub mod attributed_string;
pub mod base;