diff options
| author | 许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com> | 2024-07-22 16:44:02 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-22 16:44:02 +0800 |
| commit | b66b4020d8a34f1ac4e8566c568cff515d850bb7 (patch) | |
| tree | 7302d15d08e039e0e31f8d8e292d57413b50a593 /src/bootstrap | |
| parent | ee0fd6caf770e8b3baa403b4da3ef0c7e274dc21 (diff) | |
| parent | 9f7e049744bcbc77150c66f5ab39fd46c074a22c (diff) | |
| download | rust-b66b4020d8a34f1ac4e8566c568cff515d850bb7.tar.gz rust-b66b4020d8a34f1ac4e8566c568cff515d850bb7.zip | |
Rollup merge of #127177 - bjorn3:arm64_macos_cg_clif, r=Mark-Simulacrum
Distribute rustc_codegen_cranelift for arm64 macOS Support for arm64 macOS has been added to rustc_codegen_cranelift recently. Fixes https://github.com/rust-lang/rustc_codegen_cranelift/issues/1502
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/src/utils/helpers.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bootstrap/src/utils/helpers.rs b/src/bootstrap/src/utils/helpers.rs index 773a873e47c..690d7318f94 100644 --- a/src/bootstrap/src/utils/helpers.rs +++ b/src/bootstrap/src/utils/helpers.rs @@ -203,7 +203,9 @@ pub fn target_supports_cranelift_backend(target: TargetSelection) -> bool { || target.contains("aarch64") || target.contains("s390x") || target.contains("riscv64gc") - } else if target.contains("darwin") || target.is_windows() { + } else if target.contains("darwin") { + target.contains("x86_64") || target.contains("aarch64") + } else if target.is_windows() { target.contains("x86_64") } else { false |
