[cfe-dev] Clang to find its own headers

Máté Ferenc Nagy-Egri via cfe-dev cfe-dev at lists.llvm.org
Thu Jan 10 02:27:49 PST 2019


Hi!

Forgive my noobish question, I’m new to actually touching the Clang/LLVM codebase.

Where is it coded how Clang finds its own headers from under ’lib/clang/7.0.0/include’? I’m helping with the packaging of LLVM on Windows for Vcpkg and the resulting Clang install doesn’t work, it fails to finds its own headers. Are Clang installs relocatable? Vcpkg builds packages out of source into a staging directory. If both Debug and Release builds go fine, it does a few extra checks and copies the result of the ’install’ target which went to the staging dir to its final location. I don’t know if this workflow causes the problem or the layout is different than what Clang would expect.

Where should I start looking?

Cheers,
Máté

ps.: all this is in order to make POCL compile on Windows. As far as I saw there’s nothing prohibiting it (the ICD might), it’s just that the latest Windows install guide still mentions Clang 3.6. I already had to patch llvm-config.exe to report correct paths with the install layout enforced by Vcpkg, but the heders are still a problem.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20190110/431595aa/attachment.html>


More information about the cfe-dev mailing list