Distribute rustc_codegen_cranelift for arm64 macOS · rust-lang/rust@9f7e049 (original) (raw)
File tree
3 files changed
lines changed
- compiler/rustc_codegen_cranelift
3 files changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -70,7 +70,7 @@ For more docs on how to build and test see [build_system/usage.txt](build_system | ||
70 | 70 | |FreeBSD |
71 | 71 | |AIX |
72 | 72 | |Other unixes |
73 | -|macOS | |
73 | +|macOS | |
74 | 74 | |Windows |
75 | 75 | |
76 | 76 | ✅: Fully supported and tested |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -202,7 +202,9 @@ pub fn target_supports_cranelift_backend(target: TargetSelection) -> bool { | ||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | -} else if target.contains("darwin") | | |
205 | +} else if target.contains("darwin") { | |
206 | + target.contains("x86_64") | | |
207 | +} else if target.is_windows() { | |
206 | 208 | target.contains("x86_64") |
207 | 209 | } else { |
208 | 210 | false |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -326,6 +326,7 @@ auto: | ||
326 | 326 | NO_DEBUG_ASSERTIONS: 1 |
327 | 327 | NO_OVERFLOW_CHECKS: 1 |
328 | 328 | DIST_REQUIRE_ALL_TOOLS: 1 |
329 | +CODEGEN_BACKENDS: llvm,cranelift | |
329 | 330 | <<: *job-macos-m1 |
330 | 331 | |
331 | 332 | # This target only needs to support 11.0 and up as nothing else supports the hardware |