fix logic error in workaround

This commit is contained in:
Roelf-Jilling 2018-11-17 20:47:35 +01:00
parent bce6ed2338
commit cadb43819b

View File

@ -42,17 +42,18 @@ install:
}
$env:PATH="C:\cmake-3.8.0-win32-x86\bin;$env:PATH"
}
# Workaround for lld bug with vcpkg integration
- ps: |
if ($env:USE_TOOLSET -eq "LLVM" -and
(Get-Content C:\Tools\vcpkg\toolsrc\VERSION.txt).Replace('.','').Trim('"') -lt 20181020
) {
echo "Updating vcpkg..."
cd C:\Tools\vcpkg
git pull --quiet
cd "$env:APPVEYOR_BUILD_FOLDER"
} else {
echo "==> vcpkg has been updated, please remove the workaround from appveyor.yml."
# Workaround for lld bug with vcpkg integration
if ($env:USE_TOOLSET -eq "LLVM") {
if (
Get-Content C:\Tools\vcpkg\toolsrc\VERSION.txt).Replace('.','').Trim('"') -lt 20181020
) {
echo "Updating vcpkg..."
cd C:\Tools\vcpkg
git pull --quiet
cd "$env:APPVEYOR_BUILD_FOLDER"
} else {
echo "==> vcpkg has been updated, please remove the workaround from appveyor.yml."
}
}
before_build: