@@ -33,6 +33,28 @@ steps:
33
33
if defined TARGET rustup target add %TARGET%
34
34
condition: eq( variables['Agent.OS'], 'Windows_NT' )
35
35
displayName: Install target (windows)
36
+ - script : |
37
+ @echo on
38
+ if "%ARCH%" == "i686" choco install mingw --x86 --force
39
+ condition: eq( variables['Agent.OS'], 'Windows_NT' )
40
+ displayName: Install MinGW32 (windows)
41
+ - bash : |
42
+ set -ex
43
+ gcc -print-search-dirs
44
+ find "C:\ProgramData\Chocolatey" -name "crt2*"
45
+ find "C:\ProgramData\Chocolatey" -name "dllcrt2*"
46
+ find "C:\ProgramData\Chocolatey" -name "libmsvcrt*"
47
+ condition: eq( variables['Agent.OS'], 'Windows_NT' )
48
+ displayName: Find GCC libraries (windows)
49
+ - bash : |
50
+ set -ex
51
+ if [[ -n ${ARCH_BITS} ]]; then
52
+ for i in crt2.o dllcrt2.o libmsvcrt.a ; do
53
+ cp -f "/C/ProgramData/Chocolatey/lib/mingw/tools/install/mingw${ARCH_BITS}/${ARCH}-w64-mingw32/lib/$i" "`rustc --print sysroot`/lib/rustlib/${TARGET}/lib"
54
+ done
55
+ fi
56
+ condition: eq( variables['Agent.OS'], 'Windows_NT' )
57
+ displayName: Fix MinGW (windows)
36
58
- bash : |
37
59
set -ex
38
60
rustc -Vv
@@ -43,8 +65,12 @@ steps:
43
65
which cargo
44
66
which rustup
45
67
displayName: Query rust and cargo versions
68
+ - script : |
69
+ @echo on
70
+ where gcc
71
+ condition: eq( variables['Agent.OS'], 'Windows_NT' )
72
+ displayName: Query gcc path
46
73
- bash : |
47
74
set -ex
48
75
cargo generate-lockfile
49
76
displayName: Generate lockfiles
50
-
0 commit comments