From cadb43819b197bf80a39479afc99105ca2a4c025 Mon Sep 17 00:00:00 2001 From: Roelf-Jilling Date: Sat, 17 Nov 2018 20:47:35 +0100 Subject: [PATCH] fix logic error in workaround --- appveyor.yml | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index de7249e..a03328f 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -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: