From f9807e9f13f720006eed2a2daa1a2a2422ebfb86 Mon Sep 17 00:00:00 2001 From: Myk Melez Date: Fri, 27 Jul 2018 10:32:27 -0700 Subject: [PATCH] __acrt_iob_func() -> __iob_func() on Appveyor Works around https://github.com/rust-lang/rust/issues/47048 via workaround described in https://github.com/nabijaczleweli/cargo-update/issues/74. --- .appveyor.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.appveyor.yml b/.appveyor.yml index cad91355..54a20076 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -12,6 +12,11 @@ install: - rust-nightly-%TARGET%.exe /VERYSILENT /NORESTART /DIR="C:\Program Files (x86)\Rust" - set PATH=%PATH%;C:\Program Files (x86)\Rust\bin - if defined MSYS_BITS set PATH=%PATH%;C:\msys64\mingw%MSYS_BITS%\bin + - + # Fix undefined references to __acrt_iob_func() per + # https://github.com/nabijaczleweli/cargo-update/issues/74#issuecomment-376581009 + - 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" + - - rustc -V - cargo -V