Try to weak-link ScreenCaptureKit always (#28585)
Closes #ISSUE Release Notes: - N/A *or* Added/Fixed/Improved ...
This commit is contained in:
parent
66b3e03baa
commit
c2e3134963
5 changed files with 8 additions and 12 deletions
|
@ -77,8 +77,8 @@ mod macos {
|
|||
|
||||
fn generate_dispatch_bindings() {
|
||||
println!("cargo:rustc-link-lib=framework=System");
|
||||
println!("cargo:rustc-link-lib=framework=ScreenCaptureKit");
|
||||
println!("cargo:rerun-if-changed=src/platform/mac/dispatch.h");
|
||||
// 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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue