summary refs log tree commit diff
path: root/src/ci/scripts/switch-xcode.sh
blob: 2cbb2ddbc7046ab77caf06977f76aad5e750568f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
# Switch to XCode 9.3 on OSX since it seems to be the last version that supports
# i686-apple-darwin. We'll eventually want to upgrade this and it will probably
# force us to drop i686-apple-darwin, but let's keep the wheels turning for now.

set -euo pipefail
IFS=$'\n\t'

source "$(cd "$(dirname "$0")" && pwd)/../shared.sh"

if isMacOS; then
    sudo xcode-select --switch /Applications/Xcode_9.3.app
fi