Skip to content

Commit

Permalink
[gn build] port e586607
Browse files Browse the repository at this point in the history
Made necessary by c479e0c, which requires std::timespec
to exist, which it only does in c++17 and later.
  • Loading branch information
nico committed Oct 30, 2020
1 parent 6915c76 commit 0332e98
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion llvm/utils/gn/secondary/libcxx/src/BUILD.gn
Expand Up @@ -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" ]
Expand Down

0 comments on commit 0332e98

Please sign in to comment.