This is an archive of the discontinued LLVM Phabricator instance.

clang: Add a cmake toggle to disable libclang's libxml2 dependency
ClosedPublic

Authored by thakis on Oct 25 2022, 10:23 AM.

Details

Summary

By default, libclang will still depend on libxml2 according to
LLVM_ENABLE_LIBXML2, but with this it's possible to make libclang
not depend on libxml2 even though LLVM does.

The motivation is that libclang uses a bigger API surface of libxml2
than LLVM, and we're statically linking a very minimal build of
libxml2 in our LLVM/clang distribution.

Diff Detail

Event Timeline

thakis created this revision.Oct 25 2022, 10:23 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 25 2022, 10:23 AM
thakis requested review of this revision.Oct 25 2022, 10:23 AM
hans accepted this revision.Oct 26 2022, 10:28 AM

lgtm

This revision is now accepted and ready to land.Oct 26 2022, 10:28 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 26 2022, 10:34 AM