Rollup merge of #146184 - dpaoliello:llvmbuildarm64, r=cuviper
In the rustc_llvm build script, don't consider arm64* to be 32-bit The build script for `rustc_llvm` needs to detect 32-bit targets so that it links against `libatomics`. To do this, it matches the target architecture against `arm`, unfortunately incorrectly matches Arm64EC, Arm64E, etc. This change adds a check that the target arch doesn't match `arm64`.
This commit is contained in:
commit
c5a62b8058
1 changed files with 4 additions and 1 deletions
|
|
@ -254,7 +254,10 @@ 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.starts_with("arm64")
|
||||
&& !target.contains("freebsd")
|
||||
&& !target.contains("ohos"))
|
||||
|| target.starts_with("mips-")
|
||||
|| target.starts_with("mipsel-")
|
||||
|| target.starts_with("powerpc-")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue