Skip to content

Commit ff69f77

Browse files
committed
Auto merge of #68863 - pietroalbini:azure-macos-10.15, r=<try>
ci: switch macOS builders to 10.15 Azure Pipelines is deprecating the macOS 10.13 image we're currently running, [and they plan to remove them](https://devblogs.microsoft.com/devops/removing-older-images-in-azure-pipelines-hosted-pools/) on March 23, 2020. This PR switches our macOS builders to macOS 10.15. r? @Mark-Simulacrum
2 parents eda1a7a + 95c55b2 commit ff69f77

File tree

5 files changed

+37
-26
lines changed

5 files changed

+37
-26
lines changed

src/bootstrap/test.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1050,10 +1050,10 @@ impl Step for Compiletest {
10501050
cmd.arg("--docck-python").arg(builder.python());
10511051

10521052
if builder.config.build.ends_with("apple-darwin") {
1053-
// Force /usr/bin/python on macOS for LLDB tests because we're loading the
1053+
// Force /usr/bin/python3 on macOS for LLDB tests because we're loading the
10541054
// LLDB plugin's compiled module which only works with the system python
10551055
// (namely not Homebrew-installed python)
1056-
cmd.arg("--lldb-python").arg("/usr/bin/python");
1056+
cmd.arg("--lldb-python").arg("/usr/bin/python3");
10571057
} else {
10581058
cmd.arg("--lldb-python").arg(builder.python());
10591059
}

src/ci/azure-pipelines/auto.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
- job: macOS
6464
timeoutInMinutes: 600
6565
pool:
66-
vmImage: macos-10.13
66+
vmImage: macos-10.15
6767
steps:
6868
- template: steps/run.yml
6969
strategy:

src/ci/azure-pipelines/steps/run.yml

-4
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,6 @@ steps:
4848
displayName: Install clang
4949
condition: and(succeeded(), not(variables.SKIP_JOB))
5050

51-
- bash: src/ci/scripts/switch-xcode.sh
52-
displayName: Switch to Xcode 9.3
53-
condition: and(succeeded(), not(variables.SKIP_JOB))
54-
5551
- bash: src/ci/scripts/install-wix.sh
5652
displayName: Install wix
5753
condition: and(succeeded(), not(variables.SKIP_JOB))

src/ci/azure-pipelines/try.yml

+34-6
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,45 @@ variables:
66
- group: prod-credentials
77

88
jobs:
9-
- job: Linux
9+
- job: macOS
1010
timeoutInMinutes: 600
1111
pool:
12-
vmImage: ubuntu-16.04
12+
vmImage: macos-10.15
1313
steps:
1414
- template: steps/run.yml
1515
strategy:
1616
matrix:
17-
dist-x86_64-linux: {}
18-
dist-x86_64-linux-alt:
19-
IMAGE: dist-x86_64-linux
17+
# OSX builders running tests, these run the full test suite.
18+
# NO_DEBUG_ASSERTIONS=1 to make them go faster, but also do have some
19+
# runners that run `//ignore-debug` tests.
20+
#
21+
# Note that the compiler is compiled to target 10.8 here because the Xcode
22+
# version that we're using, 8.2, cannot compile LLVM for OSX 10.7.
23+
x86_64-apple:
24+
SCRIPT: ./x.py test
25+
RUST_CONFIGURE_ARGS: --build=x86_64-apple-darwin --enable-sanitizers --enable-profiler --set rust.jemalloc
26+
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
27+
MACOSX_DEPLOYMENT_TARGET: 10.8
28+
MACOSX_STD_DEPLOYMENT_TARGET: 10.7
29+
NO_LLVM_ASSERTIONS: 1
30+
NO_DEBUG_ASSERTIONS: 1
31+
32+
dist-x86_64-apple:
33+
SCRIPT: ./x.py dist
34+
RUST_CONFIGURE_ARGS: --target=aarch64-apple-ios,x86_64-apple-ios --enable-full-tools --enable-sanitizers --enable-profiler --set rust.jemalloc
35+
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
36+
MACOSX_DEPLOYMENT_TARGET: 10.7
37+
NO_LLVM_ASSERTIONS: 1
38+
NO_DEBUG_ASSERTIONS: 1
39+
DIST_REQUIRE_ALL_TOOLS: 1
40+
41+
dist-x86_64-apple-alt:
42+
SCRIPT: ./x.py dist
43+
RUST_CONFIGURE_ARGS: --enable-extended --enable-profiler --set rust.jemalloc
44+
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
45+
MACOSX_DEPLOYMENT_TARGET: 10.7
46+
NO_LLVM_ASSERTIONS: 1
47+
NO_DEBUG_ASSERTIONS: 1
2048

2149
# The macOS and Windows builds here are currently disabled due to them not being
2250
# overly necessary on `try` builds. We also don't actually have anything that
@@ -25,7 +53,7 @@ jobs:
2553
# - job: macOS
2654
# timeoutInMinutes: 600
2755
# pool:
28-
# vmImage: macos-10.13
56+
# vmImage: macos-10.15
2957
# steps:
3058
# - template: steps/run.yml
3159
# strategy:

src/ci/scripts/switch-xcode.sh

-13
This file was deleted.

0 commit comments

Comments
 (0)