From 178b6ac2cf8d2c703ba9bde428e98e0abcc77c27 Mon Sep 17 00:00:00 2001 From: Sebastian Imlay Date: Wed, 22 May 2024 00:37:23 -0400 Subject: [PATCH] Add visionOS and watchOS to linking to CoreFoundation framework --- core-foundation-sys/src/lib.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/core-foundation-sys/src/lib.rs b/core-foundation-sys/src/lib.rs index 948ce807..5b458fb1 100644 --- a/core-foundation-sys/src/lib.rs +++ b/core-foundation-sys/src/lib.rs @@ -23,7 +23,13 @@ // https://github.com/rust-lang/lang-team/issues/102 #[cfg_attr( all( - any(target_os = "macos", target_os = "ios", target_os = "tvos"), + any( + target_os = "macos", + target_os = "ios", + target_os = "tvos", + target_os = "watchos", + target_os = "visionos" + ), feature = "link" ), link(name = "CoreFoundation", kind = "framework")