[libc-commits] [libc] [libc] Create a separate proxy header for math-function-macros.h (PR #98430)

via libc-commits libc-commits at lists.llvm.org
Thu Jul 11 22:28:57 PDT 2024


================
@@ -21,7 +21,6 @@
 #if defined(__GNUC__) && !defined(__clang__)
 #define _GLIBCXX_INCLUDE_NEXT_C_HEADERS
 #endif
-#include <math.h>
----------------
lntue wrote:

If you look at other proxy headers in `libc/hrd/` folder, the structure is that if it is in full build mode (detected with `#ifdef LIBC_FULL_BUILD`, then we include our own headers in `libc/include/llvm-libc-*`.  OTOH, if it is in overlay mode, we will just use the corresponding system header.  And in this case, the corresponding system header is `<math.h>`.

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


More information about the libc-commits mailing list