Disable libxml on i686, because it is a 32 bit architecture and
authorEric Beckmann <ecbeckmann@google.com>
Wed, 26 Jul 2017 20:22:26 +0000 (20:22 +0000)
committerEric Beckmann <ecbeckmann@google.com>
Wed, 26 Jul 2017 20:22:26 +0000 (20:22 +0000)
libxml2.so is for 64 bit.

llvm-svn: 309169

llvm/cmake/config-ix.cmake

index c08fdd1..dc03e44 100644 (file)
@@ -159,7 +159,7 @@ if( NOT PURE_WINDOWS AND NOT LLVM_USE_SANITIZER MATCHES "Memory.*")
   find_library(ICONV_LIBRARY_PATH NAMES iconv libiconv libiconv-2 c)
   set(LLVM_LIBXML2_ENABLED 0)
   set(LIBXML2_FOUND 0)
-  if(LLVM_ENABLE_LIBXML2 AND CMAKE_SYSTEM_NAME MATCHES "Linux" AND ICONV_LIBRARY_PATH)
+  if((LLVM_ENABLE_LIBXML2) AND (CMAKE_SYSTEM_NAME MATCHES "Linux") AND (ICONV_LIBRARY_PATH) AND (NOT LLVM_NATIVE_ARCH MATCHES "i686"))
     find_package(LibXml2)
     if (LIBXML2_FOUND)
       set(LLVM_LIBXML2_ENABLED 1)