File tree Expand file tree Collapse file tree 2 files changed +18
-8
lines changed Expand file tree Collapse file tree 2 files changed +18
-8
lines changed Original file line number Diff line number Diff line change @@ -63,14 +63,11 @@ steps:
63
63
displayName : Install clang
64
64
condition : and(succeeded(), not(variables.SKIP_JOB))
65
65
66
- # Switch to XCode 9.3 on OSX since it seems to be the last version that supports
67
- # i686-apple-darwin. We'll eventually want to upgrade this and it will probably
68
- # force us to drop i686-apple-darwin, but let's keep the wheels turning for now.
69
- - bash : |
70
- set -e
71
- sudo xcode-select --switch /Applications/Xcode_9.3.app
72
- displayName : Switch to Xcode 9.3 (OSX)
73
- condition : and(succeeded(), eq(variables['Agent.OS'], 'Darwin'))
66
+ - bash : src/ci/scripts/switch-xcode.sh
67
+ env :
68
+ AGENT_OS : $(Agent.OS)
69
+ displayName : Switch to Xcode 9.3
70
+ condition : and(succeeded(), not(variables.SKIP_JOB))
74
71
75
72
- template : install-windows-build-deps.yml
76
73
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # Switch to XCode 9.3 on OSX since it seems to be the last version that supports
3
+ # i686-apple-darwin. We'll eventually want to upgrade this and it will probably
4
+ # force us to drop i686-apple-darwin, but let's keep the wheels turning for now.
5
+
6
+ set -euo pipefail
7
+ IFS=$' \n\t '
8
+
9
+ source " $( cd " $( dirname " $0 " ) " && pwd) /../shared.sh"
10
+
11
+ if isMacOS; then
12
+ sudo xcode-select --switch /Applications/Xcode_9.3.app
13
+ fi
You can’t perform that action at this time.
0 commit comments