protobuf/appveyor.yml
Adam Cozzette 885be9c982
Work around MSVC issue with std::atomic initialization (#4777)
* Work around MSVC issue with std::atomic initialization

MSVC seems to have a bug where it does not use constant initialization
for std::atomic, which ends up causing crashes during initialization.
This change introduces a workaround by putting the std::atomic inside a
union, which causes the compiler to use constant initialization for it.

* Added an AppVeyor test for static linking with MSVC
2018-06-18 11:38:06 -07:00

40 lines
783 B
YAML

platform:
- Win64
configuration:
- Debug
environment:
matrix:
- language: cpp
image: Visual Studio 2015
BUILD_DLL: ON
UNICODE: ON
- language: cpp
image: Visual Studio 2017
BUILD_DLL: OFF
UNICODE: ON
- language: csharp
image: Visual Studio 2017
# Our build scripts run tests automatically; we don't want AppVeyor
# to try to detect them itself.
test: off
install:
- git submodule update --init --recursive
before_build:
- if %platform%==Win32 set generator=Visual Studio 14
- if %platform%==Win64 set generator=Visual Studio 14 Win64
- if %platform%==Win32 set vcplatform=Win32
- if %platform%==Win64 set vcplatform=x64
build_script:
- CALL appveyor.bat
skip_commits:
message: /.*\[skip appveyor\].*/