[clang] RFC: [cmake] Export CLANG_RESOURCE_DIR in ClangConfig (PR #97197)

Kim Gräsman via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 2 15:46:41 PDT 2024


kimgr wrote:

> The exported target is new and hasn't been in a release yet. It should be in LLVM-19 once it's released and Debian gets updated. Of course, this is also true of any other new thing that gets added now anyway.

👍 

> I am a little confused about what your goal is with the path manipulations though

Aren't we all 🙂? I think what I'm trying to achieve is a portable way to refer to or install the built-in headers to avoid spurious "<stddef.h> not found" errors. My current take is we can defer to clang packaging to put the headers on disk, and make them available to IWYU with a package dependency + some kind of header search path. I don't think we need anything else from the resource dir.


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


More information about the cfe-commits mailing list