[gn build] port e58660750e

Made necessary by c479e0c994, which requires std::timespec
to exist, which it only does in c++17 and later.
This commit is contained in:
Nico Weber 2020-10-30 13:48:44 -04:00
parent 6915c76e10
commit 0332e98cb8
1 changed files with 4 additions and 1 deletions

View File

@ -53,7 +53,10 @@ config("cxx_config") {
"-Wno-user-defined-literals",
"-Wno-covered-switch-default",
]
cflags_cc = [ "-nostdinc++" ]
cflags_cc = [
"-std=c++17",
"-nostdinc++",
]
defines = [ "_LIBCPP_BUILDING_LIBRARY" ]
if (target_os == "win") {
cflags += [ "/Zl" ]