Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

call: Fix crash when screensharing on MacOS (#28784)

Piotr Osiewicz05fc9ee396d7
diff --git a/crates/gpui/build.rs b/crates/gpui/build.rs
index e30a7648a8a..c0ee6037609 100644
--- a/crates/gpui/build.rs
+++ b/crates/gpui/build.rs
@@ -77,8 +77,6 @@ mod macos {
fn generate_dispatch_bindings() {
println!("cargo:rustc-link-lib=framework=System");
- // weak link to support Catalina
- println!("cargo:rustc-link-arg=-Wl,-weak_framework,ScreenCaptureKit");
let bindings = bindgen::Builder::default()
.header("src/platform/mac/dispatch.h")
diff --git a/crates/zed/build.rs b/crates/zed/build.rs
index 7c097ba068d..531de3ceb92 100644
--- a/crates/zed/build.rs
+++ b/crates/zed/build.rs
@@ -12,6 +12,9 @@ fn main() {
// Register exported Objective-C selectors, protocols, etc
println!("cargo:rustc-link-arg=-Wl,-ObjC");
+
+ // weak link to support Catalina
+ println!("cargo:rustc-link-arg=-Wl,-weak_framework,ScreenCaptureKit");
}
// Populate git sha environment variable if git is available