From c12c5487e205a91982b31ce023611a7ad6cc194e Mon Sep 17 00:00:00 2001 From: Eric Beckmann Date: Thu, 20 Jul 2017 23:54:51 +0000 Subject: [PATCH] Explicitly disable libxml2 on android. llvm-svn: 308699 --- llvm/cmake/config-ix.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/cmake/config-ix.cmake b/llvm/cmake/config-ix.cmake index 6c8ec512ef7f..88a7c909e6c8 100644 --- a/llvm/cmake/config-ix.cmake +++ b/llvm/cmake/config-ix.cmake @@ -158,7 +158,7 @@ if( NOT PURE_WINDOWS AND NOT LLVM_USE_SANITIZER MATCHES "Memory.*") set(LLVM_LIBXML2_ENABLED 0) set(LIBXML2_FOUND 0) - if(LLVM_ENABLE_LIBXML2 AND CMAKE_SYSTEM_NAME MATCHES "Linux") + if(LLVM_ENABLE_LIBXML2 AND CMAKE_SYSTEM_NAME MATCHES "Linux" AND NOT ANDROID) find_package(LibXml2) if (LIBXML2_FOUND) set(LLVM_LIBXML2_ENABLED 1)