about summary refs log tree commit diff
path: root/src/ci/scripts/switch-xcode.sh
diff options
context:
space:
mode:
authorPietro Albini <pietro@pietroalbini.org>2019-10-07 13:44:37 +0200
committerPietro Albini <pietro@pietroalbini.org>2019-10-25 16:03:08 +0200
commit1c0d76404939f401536271f8053dd999c5f254c9 (patch)
tree0f40a1564db007a914f5bf4ea548e82475e7d6aa /src/ci/scripts/switch-xcode.sh
parentc5bbde3e2f0f681fb8ecded09924246cf5c508da (diff)
ci: extract switching xcode into a script
Diffstat (limited to 'src/ci/scripts/switch-xcode.sh')
-rwxr-xr-xsrc/ci/scripts/switch-xcode.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/ci/scripts/switch-xcode.sh b/src/ci/scripts/switch-xcode.sh
new file mode 100755
index 00000000000..2cbb2ddbc70
--- /dev/null
+++ b/src/ci/scripts/switch-xcode.sh
@@ -0,0 +1,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