Skip to content

Commit 4fec3aa

Browse files
committed
In the rustc_llvm build script, don't consider arm64* to be 32-bit
1 parent a1208bf commit 4fec3aa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

compiler/rustc_llvm/build.rs

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

257-
if (target.starts_with("arm") && !target.contains("freebsd") && !target.contains("ohos"))
257+
if (target.starts_with("arm")
258+
&& !target.starts_with("arm64")
259+
&& !target.contains("freebsd")
260+
&& !target.contains("ohos"))
258261
|| target.starts_with("mips-")
259262
|| target.starts_with("mipsel-")
260263
|| target.starts_with("powerpc-")

0 commit comments

Comments
 (0)