Workaround: fix, remove "PATH=" from text

This commit is contained in:
Roelf-Jilling 2018-11-16 16:15:44 +01:00
parent 1b0c19afd1
commit 0f4fb04bac

View File

@ -62,7 +62,7 @@ before_build:
if ((Get-Content C:\Tools\vcpkg\toolsrc\VERSION.txt).Replace('.','').Trim('"') -lt 20181020) {
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
$env:PATH = (Get-Content .\path.txt).Remove(0,5) # "PATH="
$LINKER = "link"
} else { echo "==> vcpkg has been updated, please remove the workaround from appvayor.yml." }
# /Workaround