From 69d2b367885d52decb4087334bd666578b7d5378 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Tue, 8 Nov 2022 15:07:09 +0000 Subject: [PATCH] Merge pull request #1862 from zed-industries/fix-catalina Weakly link ReplayKit to ensure this library can be used on macOS 10.15 --- crates/zed/build.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/zed/build.rs b/crates/zed/build.rs index 8622842c44..bb971041a5 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 concurrency println!("cargo:rustc-link-arg=-Wl,-rpath,/usr/lib/swift");