5 TARGET: x86_64-pc-windows-msvc
7 CONFIGURE_ARGS: --enable-llvm-assertions --enable-debug-assertions
9 TARGET: i686-pc-windows-msvc
11 CONFIGURE_ARGS: --enable-llvm-assertions --enable-debug-assertions
15 CONFIGURE_ARGS: --enable-rustbuild --enable-llvm-assertions --enable-debug-assertions
16 TARGET: x86_64-pc-windows-msvc
21 CONFIGURE_ARGS: --enable-rustbuild --enable-llvm-assertions --enable-debug-assertions
22 TARGET: x86_64-pc-windows-msvc
23 CHECK: check-cargotest
25 # 32/64-bit MinGW builds.
27 # The MinGW builds unfortunately have to both download a custom toolchain and
28 # avoid the one installed by AppVeyor by default. Interestingly, though, for
31 # For 32-bit the installed gcc toolchain on AppVeyor uses the pthread
32 # threading model. This is unfortunately not what we want, and if we compile
33 # with it then there's lots of link errors in the standard library (undefined
34 # references to pthread symbols).
36 # For 64-bit the installed gcc toolchain is currently 5.3.0 which
37 # unfortunately segfaults on Windows with --enable-llvm-assertions (segfaults
38 # in LLVM). See rust-lang/rust#28445 for more information, but to work around
39 # this we go back in time to 4.9.2 specifically.
41 # Finally, note that the downloads below are all in the `rust-lang-ci` S3
42 # bucket, but they cleraly didn't originate there! The downloads originally
43 # came from the mingw-w64 SourceForge download site. Unfortunately
44 # SourceForge is notoriously flaky, so we mirror it on our own infrastructure.
46 # And as a final point of note, the 32-bit MinGW build using the makefiles do
47 # *not* use debug assertions and llvm assertions. This is because they take
48 # too long on appveyor and this is tested by rustbuild below.
50 TARGET: i686-pc-windows-gnu
52 MINGW_URL: https://s3.amazonaws.com/rust-lang-ci
53 MINGW_ARCHIVE: i686-4.9.2-release-win32-dwarf-rt_v4-rev4.7z
57 CONFIGURE_ARGS: --enable-rustbuild --enable-llvm-assertions --enable-debug-assertions
58 TARGET: i686-pc-windows-gnu
60 MINGW_URL: https://s3.amazonaws.com/rust-lang-ci
61 MINGW_ARCHIVE: i686-4.9.2-release-win32-dwarf-rt_v4-rev4.7z
65 CONFIGURE_ARGS: --enable-llvm-assertions --enable-debug-assertions
66 TARGET: x86_64-pc-windows-gnu
68 MINGW_URL: https://s3.amazonaws.com/rust-lang-ci
69 MINGW_ARCHIVE: x86_64-4.9.2-release-win32-seh-rt_v4-rev4.7z
76 # If we need to download a custom MinGW, do so here and set the path
79 # Note that this *also* means that we're not using what is typically
80 # /mingw32/bin/python2.7.exe, which is a "correct" python interpreter where
81 # /usr/bin/python2.7.exe is not. To ensure we use the right interpreter we
82 # move `C:\Python27` ahead in PATH and then also make sure the `python2.7.exe`
83 # file exists in there (which it doesn't by default).
84 - if defined MINGW_URL appveyor DownloadFile %MINGW_URL%/%MINGW_ARCHIVE%
85 - if defined MINGW_URL 7z x -y %MINGW_ARCHIVE% > nul
86 - if defined MINGW_URL set PATH=C:\Python27;%CD%\%MINGW_DIR%\bin;C:\msys64\usr\bin;%PATH%
87 - if defined MINGW_URL copy C:\Python27\python.exe C:\Python27\python2.7.exe
89 # Otherwise pull in the MinGW installed on appveyor
90 - if NOT defined MINGW_URL set PATH=C:\msys64\mingw%MSYS_BITS%\bin;C:\msys64\usr\bin;%PATH%
96 - bash -c "make -j$(nproc)"
97 - bash -c "make %CHECK% -j$(nproc)"
100 - build/%TARGET%/llvm -> src/rustllvm/llvm-auto-clean-trigger
101 - "%TARGET%/llvm -> src/rustllvm/llvm-auto-clean-trigger"
108 # - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
110 # - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))