[libc-commits] [libc] [libc] fix aarch64 GCC build (PR #97932)

via libc-commits libc-commits at lists.llvm.org
Sun Jul 7 11:49:34 PDT 2024


================
@@ -15,6 +15,12 @@
 
 #else // Overlay mode
 
+// GCC will include CXX headers when __cplusplus is defined. This behavior
+// can be suppressed by defining _GLIBCXX_INCLUDE_NEXT_C_HEADERS.
+#include "src/__support/macros/properties/compiler.h"
+#ifdef LIBC_COMPILER_IS_GCC
----------------
lntue wrote:

Do you mind to switch to
```
#if defined(__GNUC__) && !defined(__clang__)
```
directly, so that we don't have cross dependency between `hdr` folder and `src` folder.

https://github.com/llvm/llvm-project/pull/97932


More information about the libc-commits mailing list