Add an install target for clang's API headers, which allows them to be
included in distributions. The install rules already existed, but they
lacked a component and a target, making them only accessible via a full
install. These headers are useful for writing clang-based tooling, for
example. They're the clang equivalent to the llvm-headers target and
complement the clang-libraries target.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
- Build Status
Buildable 28353 Build 28352: arc lint + arc unit
Event Timeline
I'm not entirely happy with the name clang-dev-headers, and am open to suggestions. It's unfortunate clang-headers was already taken for something different, but renaming that target or increasing its scope seems bad for existing users. Other possibilities I thought of include clang-tooling-headers, though that might be confused with the headers for libTooling specifically, and clang-library-headers. I'm open to suggestions.
We could consider renaming clang-headers to e.g. clang-resource-headers and then reusing the name which would match llvm-headers. What do you think about that?
I like that, but I'm worried about breaking existing users of the clang-headers target (e.g. in their build scripts or distributions). I could post on cfe-dev and wait for dissent/consensus, I guess, but if there's an option which doesn't involve breaking backward compatibility, maybe that's preferable.
I'd give it a try, if there's a pushback then I'd prefer to go with clang-library-headers.