Skip to content

Commit c9847db

Browse files
authored
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`
2 parents a164527 + a71b024 commit c9847db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_llvm/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ fn main() {
255255
println!("cargo:rustc-link-lib=kstat");
256256
}
257257

258-
if (target.starts_with("arm") && !target.contains("freebsd")) && !target.contains("ohos")
258+
if (target.starts_with("arm") && !target.contains("freebsd") && !target.contains("ohos"))
259259
|| target.starts_with("mips-")
260260
|| target.starts_with("mipsel-")
261261
|| target.starts_with("powerpc-")

0 commit comments

Comments
 (0)