From 1d1af22b80cb4812dbb65cedc063f234603c7553 Mon Sep 17 00:00:00 2001 From: Amanieu d'Antras Date: Sun, 5 Mar 2023 23:20:47 +0000 Subject: [PATCH] Add support for OpenHarmony --- src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index c7d9fb8..e18f1b3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1134,6 +1134,8 @@ fn default_cfg(target: &str) -> Vec<(String, Option)> { _ => panic!("Unknown version"), }; ("nto", "unix", env) + } else if target.contains("linux-ohos") { + ("linux", "unix", "ohos") } else { panic!("unknown os/family: {}", target) };