[llvm] 505e1cd - [gn build] Define _LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER when building libcxx
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 26 07:25:49 PST 2022
Author: Nico Weber
Date: 2022-02-26T10:25:01-05:00
New Revision: 505e1cda5720fd56da914431f1c5b0fe408a7856
URL: https://github.com/llvm/llvm-project/commit/505e1cda5720fd56da914431f1c5b0fe408a7856
DIFF: https://github.com/llvm/llvm-project/commit/505e1cda5720fd56da914431f1c5b0fe408a7856.diff
LOG: [gn build] Define _LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER when building libcxx
Ports 87a82490fc6b89fd3 in a way. Has the effect of enabling warnings
when building libcxx itself, but more importantly this is required
after 5aaefa510ef0 to not get build errors when building libcxx itself.
Added:
Modified:
llvm/utils/gn/secondary/libcxx/src/BUILD.gn
Removed:
################################################################################
diff --git a/llvm/utils/gn/secondary/libcxx/src/BUILD.gn b/llvm/utils/gn/secondary/libcxx/src/BUILD.gn
index 74c2ac9abbc35..fecb043ff2f31 100644
--- a/llvm/utils/gn/secondary/libcxx/src/BUILD.gn
+++ b/llvm/utils/gn/secondary/libcxx/src/BUILD.gn
@@ -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 += [
More information about the llvm-commits
mailing list