]> git.lizzy.rs Git - rust.git/blob - src/ci/scripts/install-msys2.sh
Rollup merge of #66341 - crgl:vec-deque-extend, r=Amanieu
[rust.git] / src / ci / scripts / install-msys2.sh
1 #!/bin/bash
2 # Download and install MSYS2, needed primarily for the test suite (run-make) but
3 # also used by the MinGW toolchain for assembling things.
4 #
5 # FIXME: we should probe the default azure image and see if we can use the MSYS2
6 # toolchain there. (if there's even one there). For now though this gets the job
7 # done.
8
9 set -euo pipefail
10 IFS=$'\n\t'
11
12 source "$(cd "$(dirname "$0")" && pwd)/../shared.sh"
13
14 if isWindows; then
15     choco install msys2 --params="/InstallDir:$(ciCheckoutPath)/msys2 /NoPath" -y --no-progress
16     mkdir -p "$(ciCheckoutPath)/msys2/home/${USERNAME}"
17
18     ciCommandAddPath "$(ciCheckoutPath)/msys2/usr/bin"
19 fi