Skip to content

Commit

Permalink
[gn build] (manually) port 3b62506 (-std=c++20) more
Browse files Browse the repository at this point in the history
8c54583 ported this only for libcxx, not libcxxabi.
As of 05337a7, it's needed for libcxxabi too.
  • Loading branch information
nico committed Feb 15, 2022
1 parent 71705f5 commit b432eb5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion llvm/utils/gn/secondary/libcxxabi/src/BUILD.gn
Expand Up @@ -65,7 +65,10 @@ config("cxxabi_config") {
# Some files depend on libc++ internals.
"//libcxx/src",
]
cflags_cc = [ "-nostdinc++" ]
cflags_cc = [
"-std=c++20",
"-nostdinc++",
]
defines = [ "_LIBCXXABI_BUILDING_LIBRARY" ]
if (target_os == "win") {
defines += [ "_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS" ]
Expand Down

0 comments on commit b432eb5

Please sign in to comment.