From 7b091c5b2fa82755f69801c527e1f2235482de8d Mon Sep 17 00:00:00 2001 From: Mike Kruskal <62662355+mkruskal-google@users.noreply.github.com> Date: Mon, 22 Aug 2022 14:29:12 -0700 Subject: [PATCH] Upgrade to MSVC 2017 (#10437) --- appveyor.yml | 10 +++++----- kokoro/release/protoc/windows/build.bat | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 91f737a8c0..1e2834bf44 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -3,16 +3,16 @@ configuration: environment: matrix: - # Only test few combinations: "Visual Studio 2015 (14) + Win64/MinGW + Debug + DLL". We can + # Only test few combinations: "Visual Studio 2017 (15) + Win64/MinGW + Debug + DLL". We can # test more combinations but AppVeyor just takes too long to finish (each # combination takes ~15mins). - platform: MinGW language: cpp - image: Visual Studio 2015 + image: Visual Studio 2017 - platform: Win64 language: cpp - image: Visual Studio 2015 + image: Visual Studio 2017 BUILD_DLL: ON UNICODE: ON @@ -35,8 +35,8 @@ install: before_build: - if %platform%==MinGW set generator=MinGW Makefiles - - if %platform%==Win32 set generator=Visual Studio 14 - - if %platform%==Win64 set generator=Visual Studio 14 Win64 + - if %platform%==Win32 set generator=Visual Studio 15 + - if %platform%==Win64 set generator=Visual Studio 15 Win64 - if %platform%==Win32 set vcplatform=Win32 - if %platform%==Win64 set vcplatform=x64 diff --git a/kokoro/release/protoc/windows/build.bat b/kokoro/release/protoc/windows/build.bat index 75ea546c9d..d1f4f15da0 100644 --- a/kokoro/release/protoc/windows/build.bat +++ b/kokoro/release/protoc/windows/build.bat @@ -1,6 +1,6 @@ set PATH=C:\Program Files (x86)\MSBuild\14.0\bin\;%PATH% -set generator32=Visual Studio 14 -set generator64=Visual Studio 14 Win64 +set generator32=Visual Studio 15 +set generator64=Visual Studio 15 Win64 set vcplatform32=win32 set vcplatform64=x64 set configuration=Release @@ -15,13 +15,13 @@ set ABSL_ROOT_DIR=%cd%\third_party\abseil-cpp mkdir build32 cd build32 -cmake -G "%generator32%" -Dprotobuf_BUILD_TESTS=OFF -Dprotobuf_BUILD_SHARED_LIBS=OFF -Dprotobuf_UNICODE=ON ../cmake +cmake -G "%generator32%" -Dprotobuf_BUILD_TESTS=OFF -Dprotobuf_BUILD_SHARED_LIBS=OFF -Dprotobuf_UNICODE=ON .. msbuild protobuf.sln /p:Platform=%vcplatform32% || goto error cd .. mkdir build64 cd build64 -cmake -G "%generator64%" -Dprotobuf_BUILD_TESTS=OFF -Dprotobuf_BUILD_SHARED_LIBS=OFF -Dprotobuf_UNICODE=ON ../cmake +cmake -G "%generator64%" -Dprotobuf_BUILD_TESTS=OFF -Dprotobuf_BUILD_SHARED_LIBS=OFF -Dprotobuf_UNICODE=ON .. msbuild protobuf.sln /p:Platform=%vcplatform64% || goto error cd ..