diff options
| author | lntue <35648136+lntue@users.noreply.github.com> | 2024-04-05 18:21:16 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-05 18:21:16 -0400 |
| commit | 5748ad84e5e8e5621f221199cc290666f00e2a30 (patch) | |
| tree | cd4c34fa1d3d152f888532b839509e945107349e /libc/test/src/math/sincosf_test.cpp | |
| parent | 3b337242ee165554f0017b00671381ec5b1ba855 (diff) | |
[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`.
Diffstat (limited to 'libc/test/src/math/sincosf_test.cpp')
| -rw-r--r-- | libc/test/src/math/sincosf_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/test/src/math/sincosf_test.cpp b/libc/test/src/math/sincosf_test.cpp index a7372fd53b31..7c359b345f4c 100644 --- a/libc/test/src/math/sincosf_test.cpp +++ b/libc/test/src/math/sincosf_test.cpp @@ -6,7 +6,7 @@ // //===----------------------------------------------------------------------===// -#include "include/llvm-libc-macros/math-macros.h" +#include "hdr/math_macros.h" #include "src/__support/FPUtil/FPBits.h" #include "src/errno/libc_errno.h" #include "src/math/sincosf.h" |
