Skip to content

Commit

Permalink
[gn build] Define _LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER when building l…
Browse files Browse the repository at this point in the history
…ibcxx

Ports 87a8249 in a way. Has the effect of enabling warnings
when building libcxx itself, but more importantly this is required
after 5aaefa5 to not get build errors when building libcxx itself.
  • Loading branch information
nico committed Feb 26, 2022
1 parent 462cd92 commit 505e1cd
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 @@ -55,7 +55,10 @@ config("cxx_config") {
"-std=c++20",
"-nostdinc++",
]
defines = [ "_LIBCPP_BUILDING_LIBRARY" ]
defines = [
"_LIBCPP_BUILDING_LIBRARY",
"_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER",
]
if (target_os == "win") {
cflags += [ "/Zl" ]
defines += [
Expand Down

0 comments on commit 505e1cd

Please sign in to comment.