Use clang_target_link_libraries() in order to support linking against
libclang-cpp instead of static libraries.
Details
Details
- Reviewers
sylvestre.ledru tstellar beanz phosek aaron.ballman alexfh - Commits
- rG0820041e1daa: [clang-tools-extra] [cmake] Link against libclang-cpp whenever possible
rCTE373786: [clang-tools-extra] [cmake] Link against libclang-cpp whenever possible
rL373786: [clang-tools-extra] [cmake] Link against libclang-cpp whenever possible
Diff Detail
Diff Detail
Event Timeline
Comment Actions
I don't think I can review that but I do appreciate the feature!
Maybe we should make that explicit in the release notes?
Comment Actions
What do you mean by 'feature'? clang-cpp library or clang_target_link_libraries function?
Comment Actions
More dynamic, less static isn't always a good thing. It saves disk space at the expense of performance. The option that controls this is CLANG_LINK_CLANG_DYLIB, which is mentioned in the clang 9.0 release notes.
Comment Actions
More dynamic, less static isn't always a good thing. It saves disk space at the expense of performance. The option that controls this is CLANG_LINK_CLANG_DYLIB, which is mentioned in the clang 9.0 release notes.
Sure :)
For example, for a full build of llvm-toolchain, all the packages size drop from 510M to 278M