Skip to content

Commit

Permalink
Add support for OpenHarmony
Browse files Browse the repository at this point in the history
  • Loading branch information
Amanieu committed Mar 5, 2023
1 parent dbc023a commit 1d1af22
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1134,6 +1134,8 @@ fn default_cfg(target: &str) -> Vec<(String, Option<String>)> {
_ => panic!("Unknown version"),
};
("nto", "unix", env)
} else if target.contains("linux-ohos") {
("linux", "unix", "ohos")
} else {
panic!("unknown os/family: {}", target)
};
Expand Down

0 comments on commit 1d1af22

Please sign in to comment.