Skip to content

Commit 63227c3

Browse files
Auto merge of #145252 - shepmaster:demote-x86_64-apple-darwin-to-tier-2, r=<try>
Demote x86_64-apple-darwin to Tier 2 with host tools try-job: dist-x86_64-apple
2 parents ba412a6 + c55b13e commit 63227c3

File tree

5 files changed

+23
-34
lines changed

5 files changed

+23
-34
lines changed

compiler/rustc_target/src/spec/targets/x86_64_apple_darwin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pub(crate) fn target() -> Target {
77
llvm_target,
88
metadata: TargetMetadata {
99
description: Some("x86_64 Apple macOS (10.12+, Sierra+)".into()),
10-
tier: Some(1),
10+
tier: Some(2),
1111
host_tools: Some(true),
1212
std: Some(true),
1313
},

src/ci/github-actions/jobs.yml

Lines changed: 16 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ runners:
2323
<<: *base-job
2424

2525
- &job-macos
26-
os: macos-13
27-
<<: *base-job
28-
29-
- &job-macos-m1
3026
os: macos-14
3127
<<: *base-job
3228

@@ -68,17 +64,6 @@ runners:
6864
<<: *base-job
6965

7066
envs:
71-
env-x86_64-apple-tests: &env-x86_64-apple-tests
72-
SCRIPT: ./x.py check compiletest --set build.compiletest-use-stage0-libtest=true && ./x.py --stage 2 test --skip tests/ui --skip tests/rustdoc -- --exact
73-
RUST_CONFIGURE_ARGS: --build=x86_64-apple-darwin --enable-sanitizers --enable-profiler --set rust.jemalloc
74-
# Ensure that host tooling is tested on our minimum supported macOS version.
75-
MACOSX_DEPLOYMENT_TARGET: 10.12
76-
MACOSX_STD_DEPLOYMENT_TARGET: 10.12
77-
SELECT_XCODE: /Applications/Xcode_15.2.app
78-
NO_LLVM_ASSERTIONS: 1
79-
NO_DEBUG_ASSERTIONS: 1
80-
NO_OVERFLOW_CHECKS: 1
81-
8267
production:
8368
&production
8469
DEPLOY_BUCKET: rust-lang-ci2
@@ -455,8 +440,20 @@ auto:
455440

456441
- name: dist-x86_64-apple
457442
env:
458-
SCRIPT: ./x.py dist bootstrap --include-default-paths --host=x86_64-apple-darwin --target=x86_64-apple-darwin
459-
RUST_CONFIGURE_ARGS: --enable-full-tools --enable-sanitizers --enable-profiler --set rust.jemalloc --set rust.lto=thin --set rust.codegen-units=1
443+
SCRIPT: >-
444+
./x.py dist bootstrap
445+
--include-default-paths
446+
--build=x86_64-apple-darwin
447+
--host=x86_64-apple-darwin
448+
--target=x86_64-apple-darwin
449+
RUST_CONFIGURE_ARGS: >-
450+
--enable-full-tools
451+
--enable-sanitizers
452+
--enable-profiler
453+
--disable-docs
454+
--set rust.jemalloc
455+
--set rust.lto=thin
456+
--set rust.codegen-units=1
460457
# Ensure that host tooling is built to support our minimum support macOS version.
461458
MACOSX_DEPLOYMENT_TARGET: 10.12
462459
MACOSX_STD_DEPLOYMENT_TARGET: 10.12
@@ -482,17 +479,6 @@ auto:
482479
NO_LLVM_ASSERTIONS: 1
483480
NO_DEBUG_ASSERTIONS: 1
484481
NO_OVERFLOW_CHECKS: 1
485-
<<: *job-macos-m1
486-
487-
- name: x86_64-apple-1
488-
env:
489-
<<: *env-x86_64-apple-tests
490-
<<: *job-macos
491-
492-
- name: x86_64-apple-2
493-
env:
494-
SCRIPT: ./x.py --stage 2 test tests/ui tests/rustdoc
495-
<<: *env-x86_64-apple-tests
496482
<<: *job-macos
497483

498484
- name: dist-aarch64-apple
@@ -517,7 +503,7 @@ auto:
517503
NO_OVERFLOW_CHECKS: 1
518504
DIST_REQUIRE_ALL_TOOLS: 1
519505
CODEGEN_BACKENDS: llvm,cranelift
520-
<<: *job-macos-m1
506+
<<: *job-macos
521507

522508
- name: aarch64-apple
523509
env:
@@ -537,7 +523,7 @@ auto:
537523
NO_LLVM_ASSERTIONS: 1
538524
NO_DEBUG_ASSERTIONS: 1
539525
NO_OVERFLOW_CHECKS: 1
540-
<<: *job-macos-m1
526+
<<: *job-macos
541527

542528
######################
543529
# Windows Builders #

src/doc/rustc/src/platform-support.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ target | notes
3636
`aarch64-unknown-linux-gnu` | ARM64 Linux (kernel 4.1+, glibc 2.17+)
3737
[`i686-pc-windows-msvc`](platform-support/windows-msvc.md) | 32-bit MSVC (Windows 10+, Windows Server 2016+, Pentium 4) [^x86_32-floats-return-ABI] [^win32-msvc-alignment]
3838
`i686-unknown-linux-gnu` | 32-bit Linux (kernel 3.2+, glibc 2.17+, Pentium 4) [^x86_32-floats-return-ABI]
39-
[`x86_64-apple-darwin`](platform-support/apple-darwin.md) | 64-bit macOS (10.12+, Sierra+)
4039
[`x86_64-pc-windows-gnu`](platform-support/windows-gnu.md) | 64-bit MinGW (Windows 10+, Windows Server 2016+)
4140
[`x86_64-pc-windows-msvc`](platform-support/windows-msvc.md) | 64-bit MSVC (Windows 10+, Windows Server 2016+)
4241
`x86_64-unknown-linux-gnu` | 64-bit Linux (kernel 3.2+, glibc 2.17+)
@@ -106,6 +105,7 @@ target | notes
106105
[`riscv64gc-unknown-linux-gnu`](platform-support/riscv64gc-unknown-linux-gnu.md) | RISC-V Linux (kernel 4.20+, glibc 2.29)
107106
[`riscv64gc-unknown-linux-musl`](platform-support/riscv64gc-unknown-linux-musl.md) | RISC-V Linux (kernel 4.20+, musl 1.2.3)
108107
[`s390x-unknown-linux-gnu`](platform-support/s390x-unknown-linux-gnu.md) | S390x Linux (kernel 3.2+, glibc 2.17)
108+
[`x86_64-apple-darwin`](platform-support/apple-darwin.md) | 64-bit macOS (10.12+, Sierra+)
109109
[`x86_64-pc-windows-gnullvm`](platform-support/windows-gnullvm.md) | 64-bit x86 MinGW (Windows 10+), LLVM ABI
110110
[`x86_64-unknown-freebsd`](platform-support/freebsd.md) | 64-bit x86 FreeBSD
111111
[`x86_64-unknown-illumos`](platform-support/illumos.md) | illumos

src/doc/rustc/src/platform-support/apple-darwin.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@ Apple macOS targets.
44

55
**Tier: 1**
66

7-
- `x86_64-apple-darwin`: macOS on 64-bit x86.
87
- `aarch64-apple-darwin`: macOS on ARM64 (M1-family or later Apple Silicon CPUs).
98

9+
**Tier: 2**
10+
11+
- `x86_64-apple-darwin`: macOS on 64-bit x86.
12+
1013
## Target maintainers
1114

1215
[@thomcc](https://github.com/thomcc)

src/tools/build-manifest/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ static TARGETS: &[&str] = &[
205205
///
206206
/// The order here matters, more specific entries should be first.
207207
static DOCS_FALLBACK: &[(&str, &str)] = &[
208-
("-apple-", "x86_64-apple-darwin"),
208+
("-apple-", "aarch64-apple-darwin"),
209209
("aarch64", "aarch64-unknown-linux-gnu"),
210210
("arm-", "aarch64-unknown-linux-gnu"),
211211
("", "x86_64-unknown-linux-gnu"),

0 commit comments

Comments
 (0)