]> git.lizzy.rs Git - rust.git/blob - src/ci/scripts/select-xcode.sh
Rollup merge of #107429 - tgross35:from-bytes-until-null-stabilization, r=dtolnay
[rust.git] / src / ci / scripts / select-xcode.sh
1 #!/bin/bash
2 # This script selects the Xcode instance to use.
3
4 set -euo pipefail
5 IFS=$'\n\t'
6
7 source "$(cd "$(dirname "$0")" && pwd)/../shared.sh"
8
9 if isMacOS; then
10     if [[ -s "${SELECT_XCODE-}" ]]; then
11         sudo xcode-select -s "${SELECT_XCODE}"
12     fi
13 fi