projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6915c76
)
[gn build] port e58660750e76
author
Nico Weber
<thakis@chromium.org>
Fri, 30 Oct 2020 17:48:44 +0000
(13:48 -0400)
committer
Nico Weber
<thakis@chromium.org>
Fri, 30 Oct 2020 17:49:27 +0000
(13:49 -0400)
Made necessary by
c479e0c99459e4
, which requires std::timespec
to exist, which it only does in c++17 and later.
llvm/utils/gn/secondary/libcxx/src/BUILD.gn
patch
|
blob
|
history
diff --git
a/llvm/utils/gn/secondary/libcxx/src/BUILD.gn
b/llvm/utils/gn/secondary/libcxx/src/BUILD.gn
index
71668b6
..
150ab64
100644
(file)
--- a/
llvm/utils/gn/secondary/libcxx/src/BUILD.gn
+++ b/
llvm/utils/gn/secondary/libcxx/src/BUILD.gn
@@
-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" ]