Skip to content

Commit

Permalink
Enable C++17 in Skia code built as part of separate source sets.
Browse files Browse the repository at this point in the history
Change-Id: I07d87ac4c414203a47d1d41ffdf7faefb6130711
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1935255
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Auto-Submit: Brian Salomon <bsalomon@google.com>
Cr-Commit-Position: refs/heads/master@{#719200}
  • Loading branch information
bsalomon authored and Commit Bot committed Nov 26, 2019
1 parent e7b0b56 commit e3aeec4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions skia/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,14 @@ template("skia_source_set") {
if (using_mismatched_sample_profile) {
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" ]
}
}
}

Expand Down

0 comments on commit e3aeec4

Please sign in to comment.