diff --git a/appveyor.yml b/appveyor.yml index aecde4b..a5f5cb5 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -78,11 +78,20 @@ install: } $env:toolchain = "msvc"; $version = $env:DVersion; - Invoke-WebRequest "https://github.com/ldc-developers/ldc/releases/download/v$($version)/ldc2-$($version)-win64-msvc.zip" -OutFile "c:\ldc.zip"; - echo "finished."; - pushd c:\\; - 7z x ldc.zip > $null; - popd; + if ([System.Version]$version -lt [System.Version]"1.7.0") { + Invoke-WebRequest "https://github.com/ldc-developers/ldc/releases/download/v$($version)/ldc2-$($version)-win64-msvc.zip" -OutFile "c:\ldc.zip"; + echo "finished."; + pushd c:\\; + 7z x ldc.zip > $null; + popd; + } + else { + Invoke-WebRequest "https://github.com/ldc-developers/ldc/releases/download/v$($version)/ldc2-$($version)-windows-multilib.7z" -OutFile "c:\ldc.7z"; + echo "finished."; + pushd c:\\; + 7z x ldc.7z > $null; + popd; + } } } - ps: SetUpDCompiler @@ -109,7 +118,11 @@ before_build: } elseif($env:DC -eq "ldc"){ $version = $env:DVersion; - $env:PATH += ";C:\ldc2-$($version)-win64-msvc\bin"; + if ([System.Version]$version -lt [System.Version]"1.7.0") { + $env:PATH += ";C:\ldc2-$($version)-win64-msvc\bin"; + } else { + $env:PATH += ";C:\ldc2-$($version)-windows-multilib\bin"; + } $env:DC = "ldc2"; } - ps: $env:compilersetup = "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall";