diff options
| author | LuuuXXX <luuux98@163.com> | 2025-02-12 10:24:57 +0800 | 
|---|---|---|
| committer | LuuuXXX <luuux98@163.com> | 2025-03-04 17:13:46 +0800 | 
| commit | 6324b398735961c4636fd41d5044a196063d5efa (patch) | |
| tree | 8945f9e039ec53158fced3f0be74006534c8bc41 /compiler/rustc_llvm/build.rs | |
| parent | fd17deacce374a4185c882795be162e17b557050 (diff) | |
| download | rust-6324b398735961c4636fd41d5044a196063d5efa.tar.gz rust-6324b398735961c4636fd41d5044a196063d5efa.zip | |
promote ohos targets to tier to with host tools
Diffstat (limited to 'compiler/rustc_llvm/build.rs')
| -rw-r--r-- | compiler/rustc_llvm/build.rs | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/compiler/rustc_llvm/build.rs b/compiler/rustc_llvm/build.rs index 3d1f3b2cd4d..6692ea73540 100644 --- a/compiler/rustc_llvm/build.rs +++ b/compiler/rustc_llvm/build.rs @@ -241,7 +241,7 @@ fn main() { println!("cargo:rustc-link-lib=kstat"); } - if (target.starts_with("arm") && !target.contains("freebsd")) + if (target.starts_with("arm") && !target.contains("freebsd")) && !target.contains("ohos") || target.starts_with("mips-") || target.starts_with("mipsel-") || target.starts_with("powerpc-") @@ -371,6 +371,7 @@ fn main() { || target.contains("freebsd") || target.contains("windows-gnullvm") || target.contains("aix") + || target.contains("ohos") { "c++" } else if target.contains("netbsd") && llvm_static_stdcpp.is_some() { | 
