[gn build] port b1356504e6 (c++17)

This commit is contained in:
Nico Weber 2022-08-06 07:51:06 -04:00
parent e0807b0d7e
commit 51a91d6c5d
1 changed files with 5 additions and 2 deletions

View File

@ -117,7 +117,7 @@ config("compiler_defaults") {
ldflags += [ "-Wl,--color-diagnostics" ]
}
cflags_cc += [
"-std=c++14",
"-std=c++17",
"-fvisibility-inlines-hidden",
]
} else {
@ -160,7 +160,10 @@ config("compiler_defaults") {
"_UNICODE",
"UNICODE",
]
cflags += [ "/EHs-c-" ]
cflags += [
"/std:c++17",
"/EHs-c-",
]
# The MSVC default value (1 MB) is not enough for parsing recursive C++
# templates in Clang.