Commit e3aeec40 authored by Brian Salomon's avatar Brian Salomon Committed by Commit Bot

Enable C++17 in Skia code built as part of separate source sets.

Change-Id: I07d87ac4c414203a47d1d41ffdf7faefb6130711
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1935255
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: default avatarBrian Osman <brianosman@google.com>
Auto-Submit: Brian Salomon <bsalomon@google.com>
Cr-Commit-Position: refs/heads/master@{#719200}
parent e7b0b560
...@@ -640,6 +640,14 @@ template("skia_source_set") { ...@@ -640,6 +640,14 @@ template("skia_source_set") {
if (using_mismatched_sample_profile) { if (using_mismatched_sample_profile) {
configs -= [ "//build/config/compiler:afdo_optimize_size" ] configs -= [ "//build/config/compiler:afdo_optimize_size" ]
} }
if (is_win) {
cflags_cc = [
"/std:c++17",
"/wd5041", # out-of-line definition for constexpr static data member is not needed and is deprecated in C++17
]
} else {
cflags_cc = [ "-std=c++17" ]
}
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment