From 824e1b2a99793341f97195209896169b8b33b0a7 Mon Sep 17 00:00:00 2001 From: simon-p-r Date: Mon, 10 Jul 2017 10:38:21 +0100 Subject: [PATCH] patch for Visual Studio 9 2008 x64 failed builds --- appveyor-patch.ps1 | 11 +++++++++++ appveyor.yml | 1 + 2 files changed, 12 insertions(+) create mode 100644 appveyor-patch.ps1 diff --git a/appveyor-patch.ps1 b/appveyor-patch.ps1 new file mode 100644 index 0000000..34d2163 --- /dev/null +++ b/appveyor-patch.ps1 @@ -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" + + diff --git a/appveyor.yml b/appveyor.yml index db5f2a4..f9c586a 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -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%"