summaryrefslogtreecommitdiff
path: root/libc-test
diff options
context:
space:
mode:
authorAmanieu d'Antras <amanieu@gmail.com>2022-11-10 00:34:58 +0000
committerAmanieu d'Antras <amanieu@gmail.com>2023-03-04 22:17:21 +0000
commit3f5128e77a04257a661335e9582a7f1b1e56d118 (patch)
tree06165a9b962e4144b3bee91dd040562ba6f694da /libc-test
parent973c3e1fb8acd198f197fa2a25d99184fa1f5f4b (diff)
downloadrust-libc-3f5128e77a04257a661335e9582a7f1b1e56d118.tar.gz
Add support for OpenHarmony
Diffstat (limited to 'libc-test')
-rw-r--r--libc-test/build.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc-test/build.rs b/libc-test/build.rs
index 4e67c6eb5d..80b73e911b 100644
--- a/libc-test/build.rs
+++ b/libc-test/build.rs
@@ -3081,7 +3081,7 @@ fn test_linux(target: &str) {
// target_env
let gnu = target.contains("gnu");
- let musl = target.contains("musl");
+ let musl = target.contains("musl") || target.contains("ohos");
let uclibc = target.contains("uclibc");
match (gnu, musl, uclibc) {
@@ -3946,7 +3946,7 @@ fn test_linux(target: &str) {
// are included (e.g. because including both sets of headers clashes)
fn test_linux_like_apis(target: &str) {
let gnu = target.contains("gnu");
- let musl = target.contains("musl");
+ let musl = target.contains("musl") || target.contains("ohos");
let linux = target.contains("linux");
let emscripten = target.contains("emscripten");
let android = target.contains("android");