Skip to content

Commit db60e6c

Browse files
committed
Compile statically against the MSVC CRT
This updates our AppVeyor builds to compile with `-Ctarget-feature=+crt-static` to help Cargo be a bit more portable and not rely on the MSVC redistributable artifacts. Over time this may even let us converge on only releasing one build of Cargo and just pairing that with all Windows toolchains...
1 parent cb2102b commit db60e6c

File tree

2 files changed

+52
-51
lines changed

2 files changed

+52
-51
lines changed

Cargo.lock

+50-50
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

appveyor.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
environment:
2+
RUSTFLAGS: -Zunstable-options -Ctarget-feature=+crt-static
23
matrix:
34
- TARGET: x86_64-pc-windows-gnu
45
BITS: 64
@@ -29,7 +30,7 @@ install:
2930

3031
# FIXME(#3394) use master rustup
3132
- curl -sSfO https://static.rust-lang.org/rustup/archive/0.6.5/x86_64-pc-windows-msvc/rustup-init.exe
32-
- rustup-init.exe -y --default-host x86_64-pc-windows-msvc
33+
- rustup-init.exe -y --default-host x86_64-pc-windows-msvc --default-toolchain nightly
3334
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
3435
- if NOT "%TARGET%" == "x86_64-pc-windows-msvc" rustup target add %TARGET%
3536
- if defined OTHER_TARGET rustup target add %OTHER_TARGET%

0 commit comments

Comments
 (0)