|
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 | #
|
@@ -58,17 +40,6 @@ steps:
|
58 | 40 | condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'), eq(variables['MINGW_URL'],''))
|
59 | 41 | displayName: Download standard MinGW
|
60 | 42 |
|
61 |
| -# Make sure we use the native python interpreter instead of some msys equivalent |
62 |
| -# one way or another. The msys interpreters seem to have weird path conversions |
63 |
| -# baked in which break LLVM's build system one way or another, so let's use the |
64 |
| -# native version which keeps everything as native as possible. |
65 |
| -- bash: | |
66 |
| - set -e |
67 |
| - cp C:/Python27amd64/python.exe C:/Python27amd64/python2.7.exe |
68 |
| - echo "##vso[task.prependpath]C:/Python27amd64" |
69 |
| - displayName: Prefer the "native" Python as LLVM has trouble building with MSYS sometimes |
70 |
| - condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT')) |
71 |
| - |
72 | 43 | # Note that this is originally from the github releases patch of Ninja
|
73 | 44 | - bash: |
|
74 | 45 | set -e
|
|
0 commit comments