11steps :
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- - bash : |
9- set -e
10- choco install msys2 --params="/InstallDir:$(System.Workfolder)/msys2 /NoPath" -y --no-progress
11- echo "##vso[task.prependpath]$(System.Workfolder)/msys2/usr/bin"
12- mkdir -p "$(System.Workfolder)/msys2/home/$USERNAME"
13- displayName : Install msys2
14- condition : and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))
15-
16- - bash : pacman -S --noconfirm --needed base-devel ca-certificates make diffutils tar
17- displayName : Install msys2 base deps
18- condition : and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))
19-
202# If we need to download a custom MinGW, do so here and set the path
213# appropriately.
224#
@@ -46,17 +28,6 @@ steps:
4628 condition : and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'), ne(variables['MINGW_URL'],''))
4729 displayName : Download custom MinGW
4830
49- # FIXME(#65767): workaround msys bug, step 1
50- - bash : |
51- set -e
52- arch=i686
53- if [ "$MSYS_BITS" = "64" ]; then
54- arch=x86_64
55- fi
56- curl -O https://ci-mirrors.rust-lang.org/rustc/msys2-repo/mingw/$arch/mingw-w64-$arch-ca-certificates-20180409-1-any.pkg.tar.xz
57- condition : and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))
58- displayName : Download working ca-certificates for msys
59-
6031# Otherwise install MinGW through `pacman`
6132- bash : |
6233 set -e
@@ -69,29 +40,6 @@ steps:
6940 condition : and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'), eq(variables['MINGW_URL'],''))
7041 displayName : Download standard MinGW
7142
72- # FIXME(#65767): workaround msys bug, step 2
73- - bash : |
74- set -e
75- arch=i686
76- if [ "$MSYS_BITS" = "64" ]; then
77- arch=x86_64
78- fi
79- pacman -U --noconfirm --noprogressbar mingw-w64-$arch-ca-certificates-20180409-1-any.pkg.tar.xz
80- rm mingw-w64-$arch-ca-certificates-20180409-1-any.pkg.tar.xz
81- condition : and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))
82- displayName : Install working ca-certificates for msys
83-
84- # Make sure we use the native python interpreter instead of some msys equivalent
85- # one way or another. The msys interpreters seem to have weird path conversions
86- # baked in which break LLVM's build system one way or another, so let's use the
87- # native version which keeps everything as native as possible.
88- - bash : |
89- set -e
90- cp C:/Python27amd64/python.exe C:/Python27amd64/python2.7.exe
91- echo "##vso[task.prependpath]C:/Python27amd64"
92- displayName : Prefer the "native" Python as LLVM has trouble building with MSYS sometimes
93- condition : and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))
94-
9543# Note that this is originally from the github releases patch of Ninja
9644- bash : |
9745 set -e
0 commit comments