From 021ae3e79d791112ba8646eb58b7baf62d69403d Mon Sep 17 00:00:00 2001 From: nabijaczleweli Date: Wed, 10 Jan 2018 07:51:23 +0100 Subject: [PATCH] Fix undefined references to __acrt_iob_func() on AppVeyor --- appveyor.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/appveyor.yml b/appveyor.yml index 1d2ea9da56..2971838e52 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -13,6 +13,9 @@ install: - bash -lc "pacman --noconfirm -Sy" - bash -lc "pacman --noconfirm -S mingw-w64-x86_64-toolchain" - + # 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" + - - curl -SL https://win.rustup.rs/ -oC:\rustup-init.exe - C:\rustup-init.exe -y --default-host="x86_64-pc-windows-gnu"