If LLVM_ENABLE_LIBXML2=OFF, we should not attempt to link clang against
libxml2.
Details
Diff Detail
- Repository
- rC Clang
- Build Status
Buildable 16693 Build 16693: arc lint + arc unit
Event Timeline
The only think that links against libxml2 is c-index-test. Surely nobody cares about installing c-index-test on some other machine that lacks the local version of libxml2. What's the use case for this to justify the complexity of interacting with LLVM's configuration options?
I'd be fine with not building c-index-test when building clang, but I didn't see any easy way to disable it.
My use-case here is just to build LLVM+clang without having to link against my system libxml2 at all. It's a rather weird build situation, but Android builds a toolchain against a fixed, prebuilt set of headers. My system libxml2 expects unicode support that these prebuilt headers don't have, so it's much simpler to just disable libxml2 support. This led me to the realization that you can't actually disable libxml2 support for clang, which struck me as odd since it's so unimportant.
Looks like this was effectively implemented in c4d75361, so this change is no longer necessary.