Skip to content

Commit

Permalink
Merge pull request #38 from songhuaixu/master
Browse files Browse the repository at this point in the history
Add iOS and Android support
  • Loading branch information
lelongg authored Aug 23, 2024
2 parents fb7254d + b0c672b commit bd681ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ fn main() {
let target_env = env::var("CARGO_CFG_TARGET_ENV").unwrap();

match (target_os.as_str(), target_env.as_str()) {
("linux", _) | ("windows", "gnu") => println!("cargo:rustc-link-lib=dylib=stdc++"),
("macos", _) => println!("cargo:rustc-link-lib=dylib=c++"),
("linux", _) | ("windows", "gnu") | ("android", _) => println!("cargo:rustc-link-lib=dylib=stdc++"),
("macos", _) | ("ios", _) => println!("cargo:rustc-link-lib=dylib=c++"),
("windows", "msvc") => {}
_ => unimplemented!(
"target_os: {}, target_env: {}",
Expand Down

0 comments on commit bd681ff

Please sign in to comment.