call: Fix crash when screensharing on MacOS (#28784)
Closes #ISSUE Release Notes: - Fixed a crash when screensharing on MacOS Co-authored-by: Conrad <conrad@zed.dev> Co-authored-by: Anthony Eid <hello@anthonyeid.me>
This commit is contained in:
parent
8f52bb92b6
commit
05fc9ee396
2 changed files with 3 additions and 2 deletions
|
@ -77,8 +77,6 @@ mod macos {
|
||||||
|
|
||||||
fn generate_dispatch_bindings() {
|
fn generate_dispatch_bindings() {
|
||||||
println!("cargo:rustc-link-lib=framework=System");
|
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()
|
let bindings = bindgen::Builder::default()
|
||||||
.header("src/platform/mac/dispatch.h")
|
.header("src/platform/mac/dispatch.h")
|
||||||
|
|
|
@ -12,6 +12,9 @@ fn main() {
|
||||||
|
|
||||||
// Register exported Objective-C selectors, protocols, etc
|
// Register exported Objective-C selectors, protocols, etc
|
||||||
println!("cargo:rustc-link-arg=-Wl,-ObjC");
|
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
|
// Populate git sha environment variable if git is available
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue