aboutsummaryrefslogtreecommitdiffhomepage
path: root/gn/BUILD.gn
diff options
context:
space:
mode:
authorGravatar Mike Klein <mtklein@chromium.org>2017-07-31 16:35:17 -0400
committerGravatar Mike Klein <mtklein@chromium.org>2017-07-31 20:58:55 +0000
commita91ec58b4e993d1381077b9b428c4d649056f295 (patch)
tree86a02ab70b01c258b4ead60813c6ec76c7e3e094 /gn/BUILD.gn
parent0576a45c7570686a1057ad07d8abf21a3bad403f (diff)
Tell clang/win to emulate MSVC 2015
By default it emulates your installed cl.exe, but the bots don't have one. I think the fallback is 2013, which causes all sorts of pre-C++11 problems. CQ_INCLUDE_TRYBOTS=skia.primary:Build-Win-Clang-x86_64-Release Change-Id: I2556abe68825e58762b4172d067ba6826de5c133 Reviewed-on: https://skia-review.googlesource.com/29021 Reviewed-by: Mike Klein <mtklein@chromium.org> Commit-Queue: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'gn/BUILD.gn')
-rw-r--r--gn/BUILD.gn3
1 files changed, 3 insertions, 0 deletions
diff --git a/gn/BUILD.gn b/gn/BUILD.gn
index e1cca9288d..7be1617d23 100644
--- a/gn/BUILD.gn
+++ b/gn/BUILD.gn
@@ -44,6 +44,9 @@ config("default") {
"/WX", # Treat warnings as errors.
"/utf-8", # Set Source and Executable character sets to UTF-8.
]
+ if (is_clang) {
+ cflags += [ "-fms-compatibility-version=19" ] # 2015
+ }
defines += [
"_CRT_SECURE_NO_WARNINGS", # Disables warnings about sscanf().
"_HAS_EXCEPTIONS=0", # Disables exceptions in MSVC STL.