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/utils | |
parent | 3b337242ee165554f0017b00671381ec5b1ba855 (diff) | |
download | llvm-5748ad84e5e8e5621f221199cc290666f00e2a30.zip llvm-5748ad84e5e8e5621f221199cc290666f00e2a30.tar.gz llvm-5748ad84e5e8e5621f221199cc290666f00e2a30.tar.bz2 |
[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/utils')
-rw-r--r-- | libc/utils/MPFRWrapper/MPFRUtils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/utils/MPFRWrapper/MPFRUtils.cpp b/libc/utils/MPFRWrapper/MPFRUtils.cpp index 938e2c3..91a623d 100644 --- a/libc/utils/MPFRWrapper/MPFRUtils.cpp +++ b/libc/utils/MPFRWrapper/MPFRUtils.cpp @@ -14,7 +14,7 @@ #include "src/__support/FPUtil/fpbits_str.h" #include "test/UnitTest/FPMatcher.h" -#include "include/llvm-libc-macros/math-macros.h" +#include "hdr/math_macros.h" #include <fenv.h> #include <memory> #include <stdint.h> |