Use LLVM_ENABLE_LIBXML2 to enable the use of libxml2 and HAVE_LIBXML2
to signal its presence.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/cmake/config-ix.cmake | ||
---|---|---|
167 | If LLVM_ENABLE_LIBXML2 is enabled but we don't find libxml2 then we should emit an error. | |
llvm/test/lit.site.cfg.py.in | ||
38 | Isn't @HAVE_LIBXML2@ going to expand to the string TRUE? That doesn't seem like it would work. First because it's not quoted, second because config.have_libxml2 probably should be a python bool. |
llvm/test/lit.site.cfg.py.in | ||
---|---|---|
38 | It'll because of llvm_canonicalize_cmake_booleans, see the change above in llvm/test/CMakeLists.txt. |
llvm/cmake/config-ix.cmake | ||
---|---|---|
167 | This is already handled by the check below (when LLVM_ENABLE_LIBXML2 is set to FORCE_ON), we could check it to emit an error even when it's set just to ON but I don't know whether that's going to break any existing users? |
If LLVM_ENABLE_LIBXML2 is enabled but we don't find libxml2 then we should emit an error.