Skip to content

Commit

Permalink
Merge pull request #221 from jschwe/ohos_shared_lib
Browse files Browse the repository at this point in the history
ohos: Link shared lib on OpenHarmony
  • Loading branch information
Byron authored Oct 3, 2024
2 parents f656726 + 7b519df commit 5488e3c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ fn main() {
}

// All android compilers should come with libz by default, so let's just use
// the one already there. Likewise, Haiku always ships with libz, so we can
// link to it even when cross-compiling.
if target.contains("android") || target.contains("haiku") {
// the one already there. Likewise, Haiku and OpenHarmony always ship with libz,
// so we can link to it even when cross-compiling.
if target.contains("android") || target.contains("haiku") || target.ends_with("-ohos") {
println!("cargo:rustc-link-lib=z");
return;
}
Expand Down

0 comments on commit 5488e3c

Please sign in to comment.