2016-08-08 14:58:16 +08:00
|
|
|
environment:
|
2017-06-25 01:04:00 +08:00
|
|
|
# It's... a little unclear why the memcpy symbols clash on linux but not on
|
|
|
|
# other platforms. Would be great to not differ on this though!
|
2017-06-24 12:36:36 +08:00
|
|
|
INTRINSICS_FAILS_WITH_MEM_FEATURE: 1
|
2017-06-25 01:04:00 +08:00
|
|
|
|
2016-08-08 14:59:37 +08:00
|
|
|
matrix:
|
|
|
|
- TARGET: i686-pc-windows-msvc
|
|
|
|
- TARGET: x86_64-pc-windows-msvc
|
2016-08-08 14:58:16 +08:00
|
|
|
|
2017-06-24 11:35:25 +08:00
|
|
|
# Ensure MinGW works, but we need to download the 32-bit MinGW compiler from a
|
|
|
|
# custom location.
|
2017-06-25 01:04:00 +08:00
|
|
|
#
|
|
|
|
# Note that the MinGW builds have tons of references to
|
|
|
|
# `rust_eh_unwind_resume` in the debug LTO builds that aren't optimized out,
|
|
|
|
# so we skip that test for now. Would be great to not skip it!
|
2017-06-24 11:35:25 +08:00
|
|
|
- TARGET: i686-pc-windows-gnu
|
2017-09-16 06:59:15 +08:00
|
|
|
MINGW_URL: https://s3-us-west-1.amazonaws.com/rust-lang-ci2/rust-ci-mirror
|
|
|
|
MINGW_ARCHIVE: i686-6.3.0-release-win32-dwarf-rt_v5-rev1.7z
|
2017-06-24 11:35:25 +08:00
|
|
|
MINGW_DIR: mingw32
|
2017-06-25 01:04:00 +08:00
|
|
|
DEBUG_LTO_BUILD_DOESNT_WORK: 1
|
2017-06-24 11:35:25 +08:00
|
|
|
- TARGET: x86_64-pc-windows-gnu
|
2017-06-25 01:04:00 +08:00
|
|
|
DEBUG_LTO_BUILD_DOESNT_WORK: 1
|
2017-06-24 11:35:25 +08:00
|
|
|
|
2016-08-08 14:58:16 +08:00
|
|
|
install:
|
2016-09-27 13:22:10 +08:00
|
|
|
- git submodule update --init
|
2017-06-23 05:00:31 +08:00
|
|
|
- appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
|
2017-04-12 03:28:31 +08:00
|
|
|
- rustup-init.exe --default-host x86_64-pc-windows-msvc --default-toolchain nightly -y
|
2017-06-24 12:38:55 +08:00
|
|
|
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
|
2017-06-24 11:35:25 +08:00
|
|
|
- if NOT "%TARGET%" == "x86_64-pc-windows-msvc" rustup target add %TARGET%
|
|
|
|
|
2017-06-24 12:23:52 +08:00
|
|
|
# Use the system msys
|
|
|
|
- set PATH=C:\msys64\mingw64\bin;C:\msys64\usr\bin;%PATH%
|
2017-06-24 11:35:25 +08:00
|
|
|
|
|
|
|
# download a custom compiler otherwise
|
|
|
|
- if defined MINGW_URL appveyor DownloadFile %MINGW_URL%/%MINGW_ARCHIVE%
|
|
|
|
- if defined MINGW_URL 7z x -y %MINGW_ARCHIVE% > nul
|
|
|
|
- if defined MINGW_URL set PATH=C:\Python27;%CD%\%MINGW_DIR%\bin;C:\msys64\usr\bin;%PATH%
|
|
|
|
|
2016-08-08 14:58:16 +08:00
|
|
|
- rustc -Vv
|
|
|
|
- cargo -V
|
|
|
|
|
|
|
|
build: false
|
|
|
|
|
|
|
|
test_script:
|
2017-06-24 12:23:52 +08:00
|
|
|
- sh ci/run.sh %TARGET%
|