Rollup merge of #145222 - dpaoliello:pareninllvmbuild, r=Amanieu

Fix typo with paren rustc_llvm/build.rs

The current parenthesis looks suspect: it means that OpenHarmony is always excluded whereas it looks like it was intended to only be excluded if the architecture was Arm.

Since Rust doesn't support the other architectures with OpenHarmony, there currently isn't a bug but this cleans up some suspicious code and avoids a potential future annoyance for someone trying to bring up a new triple.

r? `@Amanieu`
This commit is contained in:
Jacob Pratt
2025-08-10 15:43:56 -04:00
committed by GitHub
+1 -1
View File
@@ -255,7 +255,7 @@ fn main() {
println!("cargo:rustc-link-lib=kstat");
}
if (target.starts_with("arm") && !target.contains("freebsd")) && !target.contains("ohos")
if (target.starts_with("arm") && !target.contains("freebsd") && !target.contains("ohos"))
|| target.starts_with("mips-")
|| target.starts_with("mipsel-")
|| target.starts_with("powerpc-")