From 8a5ad6661697ad84d131236057a08bdb866ab157 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Sun, 8 Apr 2018 11:54:53 +0200 Subject: [PATCH] Fix undefined references related to cargo install-update on appveyor --- .appveyor.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.appveyor.yml b/.appveyor.yml index 71866db3..6f27adf5 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -64,6 +64,8 @@ build: false before_test: - set PATH=C:\msys64\mingw%MSYS_BITS%\bin;C:\msys64\usr\bin;%PATH% + # Fix undefined references to __acrt_iob_func() + - sed -rie "s/#define std([[:alpha:]]+)[[:space:]]+\(__acrt_iob_func\(([[:digit:]]+)\)\)/#define std\1 (\&__iob_func()[\2])/" "C:\msys64\mingw64\x86_64-w64-mingw32\include\stdio.h" - rustup component add rust-src - set RUST_BACKTRACE=1 - if not exist %USERPROFILE%\.cargo\bin\cargo-install-update.exe cargo install cargo-update