1
1
steps :
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
-
20
2
# If we need to download a custom MinGW, do so here and set the path
21
3
# appropriately.
22
4
#
@@ -46,17 +28,6 @@ steps:
46
28
condition : and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'), ne(variables['MINGW_URL'],''))
47
29
displayName : Download custom MinGW
48
30
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
-
60
31
# Otherwise install MinGW through `pacman`
61
32
- bash : |
62
33
set -e
@@ -69,29 +40,6 @@ steps:
69
40
condition : and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'), eq(variables['MINGW_URL'],''))
70
41
displayName : Download standard MinGW
71
42
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
-
95
43
# Note that this is originally from the github releases patch of Ninja
96
44
- bash : |
97
45
set -e
0 commit comments