Skip to content

Commit

Permalink
bug: fix for builds performed apple hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhmud Ahmad committed Sep 18, 2024
1 parent 43ee0ac commit 1dc5c42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dotlottie-rs/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ fn is_wasm_build() -> bool {
}

fn platform_libs() -> Vec<String> {
match env::var("CARGO_CFG_TARGET_VENDOR") {
Ok(platform) if platform == "apple" => vec![String::from("c++")],
match env::var("HOST") {
Ok(triple) if triple.contains("apple") => vec![String::from("c++")],
Ok(_) if std::env::var("CARGO_CFG_UNIX").is_ok() => vec![String::from("stdc++")],
Ok(_) => vec![],
Err(_) => panic!("CARGO_CFG_TARGET_VENDOR environment variable not set"),
Expand Down

0 comments on commit 1dc5c42

Please sign in to comment.