Skip to content

Commit 0332e98

Browse files
committed
[gn build] port e586607
Made necessary by c479e0c, which requires std::timespec to exist, which it only does in c++17 and later.
1 parent 6915c76 commit 0332e98

File tree

1 file changed

+4
-1
lines changed
  • llvm/utils/gn/secondary/libcxx/src

1 file changed

+4
-1
lines changed

llvm/utils/gn/secondary/libcxx/src/BUILD.gn

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ config("cxx_config") {
5353
"-Wno-user-defined-literals",
5454
"-Wno-covered-switch-default",
5555
]
56-
cflags_cc = [ "-nostdinc++" ]
56+
cflags_cc = [
57+
"-std=c++17",
58+
"-nostdinc++",
59+
]
5760
defines = [ "_LIBCPP_BUILDING_LIBRARY" ]
5861
if (target_os == "win") {
5962
cflags += [ "/Zl" ]

0 commit comments

Comments
 (0)