patch for Visual Studio 9 2008 x64 failed builds

This commit is contained in:
simon-p-r 2017-07-10 10:38:21 +01:00
parent dd980008f7
commit 824e1b2a99
No known key found for this signature in database
GPG Key ID: 5963FF709EE3DC8A
2 changed files with 12 additions and 0 deletions

11
appveyor-patch.ps1 Normal file
View File

@ -0,0 +1,11 @@
# Script to patch Appveyor build environment for Visual Studio 2008 64bit
$url = "https://github.com/menpo/condaci/raw/master/vs2008_patch.zip"
$output = "$pwd\build\vs2008_patch.zip"
(New-Object System.Net.WebClient).DownloadFile($url, $output)
7z -e "$pwd\build\vs2008_patch.zip"
cmd.exe /c "$pwd\build\vs2008_patch\setup_x64.bat"

View File

@ -72,6 +72,7 @@ configuration:
build_script:
- ps: if($env:PLATFORM -eq "x64" -And $GENERATOR -eq 'Visual Studio 9 2008') { .\appveyor-patch.ps1 }
- ps: if($env:PLATFORM -eq "x64") { $env:CMAKE_GEN_SUFFIX=" Win64" }
- cmake "-G%GENERATOR%%CMAKE_GEN_SUFFIX%" -DBUILD_SHARED_LIBS=%BUILD_SHARED_LIBS% -DENABLE_CJSON_TEST=%ENABLE_CJSON_TEST% -H. -Bbuild
- cmake --build build --config "%CONFIGURATION%"