Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Move weak linking into zed's build.rs
Antonio Scandurra3f1b95927f01
diff --git a/crates/live_kit_client/build.rs b/crates/live_kit_client/build.rsindex d9430736ad2..bceb4fb927d 100644--- a/crates/live_kit_client/build.rs+++ b/crates/live_kit_client/build.rs@@ -44,9 +44,6 @@ fn main() {// Register exported Objective-C selectors, protocols, etc when building example binaries.println!("cargo:rustc-link-arg=-Wl,-ObjC");-- // Weakly link ReplayKit to ensure this library can be used on macOS 10.15+.- println!("cargo:rustc-link-arg=-Wl,-weak_framework ReplayKit");}}diff --git a/crates/zed/build.rs b/crates/zed/build.rsindex 8622842c440..bb971041a5b 100644--- a/crates/zed/build.rs+++ b/crates/zed/build.rs@@ -16,6 +16,9 @@ fn main() {println!("cargo:rustc-link-arg=-Wl,-rpath,@executable_path");}+ // Weakly link ReplayKit to ensure Zed can be used on macOS 10.15+.+ println!("cargo:rustc-link-arg=-Wl,-weak_framework,ReplayKit");+// Seems to be required to enable Swift concurrencyprintln!("cargo:rustc-link-arg=-Wl,-rpath,/usr/lib/swift");