5 Commits

Author SHA1 Message Date
Nhat Nguyen
f8f5b17564
[libc] Create a separate proxy header for math-function-macros.h (#98430)
Fix #98393
2024-07-28 00:38:49 -04:00
Petr Hosek
d99efd53f5
[libc] Add a missing math-function-macros.h include (#98271)
This was accidentally omitted in #96008.
2024-07-09 22:25:40 -07:00
Schrodinger ZHU Yifan
1b26bb0d12
[libc] fix aarch64 GCC build (#97932)
This PR fix several build errors on aarch64 targets when building with
gcc:
- uninitialized values leading to `Werrors`
- undefined builtin functions
- glibc header pollution
2024-07-07 12:12:47 -07:00
lntue
7248c9feb9
[libc] Adding FP_INT_* macro constants if missing in overlay mode. (#87880) 2024-04-06 17:38:47 -04:00
lntue
5748ad84e5
[libc] Add proxy header math_macros.h. (#87598)
Context: https://github.com/llvm/llvm-project/pull/87017

- Add proxy header `libc/hdr/math_macros.h` that will:
  - include `<math.h>` in overlay mode,
- include `"include/llvm-libc-macros/math-macros.h"` in full build mode.
- Its corresponding CMake target `libc.hdr.math_macros` will only depend
on `libc.include.math` and `libc.include.llvm-libc-macros.math_macros`
in full build mode.
- Replace all `#include "include/llvm-libc-macros/math-macros.h"` with
`#include "hdr/math_macros.h"`.
- Add dependency to `libc.hdr.math_macros` CMake target when using
`add_fp_unittest`.
- Update the remaining dependency.
- Update bazel overlay: add `libc:hdr_math_macros` target, and replacing
all dependency on `libc:llvm_libc_macros_math_macros` with
`libc:hdr_math_macros`.
2024-04-05 18:21:16 -04:00