[libc-commits] [libc] [libc] Fix installed 'math.h' header paths (PR #83199)

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Tue Feb 27 15:05:28 PST 2024


jhuber6 wrote:

> I think we plan (and currently we do) to directly include many of those headers in `llvm-libc-macros` and `llvm-libc-types` directly in our internal implementations inside `src` folder, we should add `libc/include` in the include paths so that internal inclusions will match with installed headers as `#include <llvm-libc-macros/*>`. WDYT? @nickdesaulniers @michaelrj-google @gchatelet

We'd end up with `include/include/...` and you'd need to append `include/` to the internal include path, but that would be one option. Generally it's easier just to use the include directory as the root, but it's only difficult in this scenario where we want to include something in the macros from the types.

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


More information about the libc-commits mailing list