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