forked from OSchip/llvm-project
Disable libxml on i686, because it is a 32 bit architecture and
libxml2.so is for 64 bit. llvm-svn: 309169
This commit is contained in:
parent
09244f39dd
commit
b25bdc27b9
|
@ -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)
|
find_library(ICONV_LIBRARY_PATH NAMES iconv libiconv libiconv-2 c)
|
||||||
set(LLVM_LIBXML2_ENABLED 0)
|
set(LLVM_LIBXML2_ENABLED 0)
|
||||||
set(LIBXML2_FOUND 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)
|
find_package(LibXml2)
|
||||||
if (LIBXML2_FOUND)
|
if (LIBXML2_FOUND)
|
||||||
set(LLVM_LIBXML2_ENABLED 1)
|
set(LLVM_LIBXML2_ENABLED 1)
|
||||||
|
|
Loading…
Reference in New Issue