@@ -138,6 +138,20 @@ install:
138
138
- if defined MINGW_URL 7z x -y %MINGW_ARCHIVE% > nul
139
139
- if defined MINGW_URL set PATH=%CD%\%MINGW_DIR%\bin;C:\msys64\usr\bin;%PATH%
140
140
141
+ # If we're compiling for MSVC then we, like most other distribution builders,
142
+ # switch to clang as the compiler. This'll allow us eventually to enable LTO
143
+ # amongst LLVM and rustc. Note that we only do this on MSVC as I don't think
144
+ # clang has an output mode compatible with MinGW that we need. If it does we
145
+ # should switch to clang for MinGW as well!
146
+ #
147
+ # Note that the LLVM installer is an NSIS installer
148
+ #
149
+ # Original downloaded here came from
150
+ # http://releases.llvm.org/6.0.0/LLVM-6.0.0-win64.exe
151
+ - if NOT defined MINGW_URL appveyor-retry appveyor DownloadFile https://s3-us-west-1.amazonaws.com/rust-lang-ci2/rust-ci-mirror/LLVM-6.0.0-win64.exe
152
+ - if NOT defined MINGW_URL .\LLVM-6.0.0-win64.exe /S /NCRC /D=C:\clang-rust
153
+ - if NOT defined MINGW_URL set RUST_CONFIGURE_ARGS=%RUST_CONFIGURE_ARGS% --set llvm.clang-cl=C:\clang-rust\bin\clang-cl.exe
154
+
141
155
# Here we do a pretty heinous thing which is to mangle the MinGW installation
142
156
# we just had above. Currently, as of this writing, we're using MinGW-w64
143
157
# builds of gcc, and that's currently at 6.3.0. We use 6.3.0 as it appears to
@@ -166,8 +180,8 @@ install:
166
180
- set PATH=C:\Python27;%PATH%
167
181
168
182
# Download and install sccache
169
- - appveyor-retry appveyor DownloadFile https://s3-us-west-1.amazonaws.com/rust-lang-ci2/rust-ci-mirror/2018-04-02 -sccache-x86_64-pc-windows-msvc
170
- - mv 2018-04-02 -sccache-x86_64-pc-windows-msvc sccache.exe
183
+ - appveyor-retry appveyor DownloadFile https://s3-us-west-1.amazonaws.com/rust-lang-ci2/rust-ci-mirror/2018-04-26 -sccache-x86_64-pc-windows-msvc
184
+ - mv 2018-04-26 -sccache-x86_64-pc-windows-msvc sccache.exe
171
185
- set PATH=%PATH%;%CD%
172
186
173
187
# Download and install ninja
0 commit comments