BUILD.gn: Make MSVC report the correct __cplusplus value (#5088)

This commit is contained in:
Corentin Wallez 2023-01-30 15:02:26 +01:00 committed by GitHub
parent 64ba112ffb
commit 0174dd11ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -370,6 +370,9 @@ config("spvtools_internal_config") {
} else if (!is_win) {
# Work around a false-positive on a Skia GCC 10 builder.
cflags += [ "-Wno-format-truncation" ]
} else {
# Make MSVC report the correct value for __cplusplus
cflags += [ "/Zc:__cplusplus" ]
}
}