Skip to content

Commit

Permalink
Fix cross compilation.
Browse files Browse the repository at this point in the history
  • Loading branch information
dvc94ch committed Oct 22, 2022
1 parent 07c8e5e commit 60ca25d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
// SPDX-License-Identifier: MIT

fn main() {
let is_macos = std::env::var("TARGET")
.map(|t| t.ends_with("-darwin"))
.unwrap_or_default();
if is_macos {
let target_os = std::env::var("CARGO_CFG_TARGET_OS").unwrap();
if target_os == "macos" || target_os == "ios" {
println!("cargo:rustc-link-lib=framework=WebKit");
}

Expand Down

0 comments on commit 60ca25d

Please sign in to comment.