From d6146b25a580de72487c17aceab896b859df546e Mon Sep 17 00:00:00 2001 From: Alex Crichton <alex@alexcrichton.com> Date: Wed, 12 Sep 2018 11:12:14 -0700 Subject: [PATCH] Build "more compatible" executables on AppVeyor Pass the `-C target-feature=+crt-static` feature on AppVeyor to ensure that binaries produced on Windows have as few dynamic dependencies as possible, making them more portable to run on more Windows machines. --- .appveyor.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.appveyor.yml b/.appveyor.yml index b88d208..4ca6cb1 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -1,6 +1,10 @@ +environment: + global: + RUSTFLAGS: -C target-feature=+crt-static + install: - appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe - - if not defined RUSTFLAGS rustup-init.exe -y --default-host x86_64-pc-windows-msvc --default-toolchain nightly + - rustup-init.exe -y --default-host x86_64-pc-windows-msvc --default-toolchain nightly - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin - rustc -V - cargo -V