Skip to content

Commit

Permalink
chore: Remove duplicate lines in crates/zed/build.rs (#22500)
Browse files Browse the repository at this point in the history
  • Loading branch information
huacnlee authored Dec 30, 2024
1 parent 344284e commit 5f4f3a9
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions crates/zed/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,6 @@ fn main() {
println!("cargo:rustc-link-arg=-Wl,-rpath,@executable_path");
}

if std::env::var("ZED_BUNDLE").ok().as_deref() == Some("true") {
// Find WebRTC.framework in the Frameworks folder when running as part of an application bundle.
println!("cargo:rustc-link-arg=-Wl,-rpath,@executable_path/../Frameworks");
} else {
// Find WebRTC.framework as a sibling of the executable when running outside of an application bundle.
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");

Expand Down

0 comments on commit 5f4f3a9

Please sign in to comment.