From 1b0c19afd154f4ffc5ef793014c1bc2324534fd0 Mon Sep 17 00:00:00 2001 From: Roelf-Jilling Date: Fri, 16 Nov 2018 15:46:41 +0100 Subject: [PATCH] Workaround: get msvc paths into PowerShell through intermediate file --- appveyor.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index 0973d3f..cc44803 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -60,7 +60,10 @@ before_build: $LINKER = "lld-link" # Workaround for lld bug with vcpkg integration if ((Get-Content C:\Tools\vcpkg\toolsrc\VERSION.txt).Replace('.','').Trim('"') -lt 20181020) { - $LINKER = "link" # MSVC-linker + echo "Fallback to MSVC linker." + cmd /c '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %PLATFORM% && PATH > path.txt' + $env:PATH = Get-Content .\path.txt + $LINKER = "link" } else { echo "==> vcpkg has been updated, please remove the workaround from appvayor.yml." } # /Workaround clang-cl --version