[llvm] r309169 - Disable libxml on i686, because it is a 32 bit architecture and
Eric Beckmann via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 26 13:22:26 PDT 2017
Author: ecbeckmann
Date: Wed Jul 26 13:22:26 2017
New Revision: 309169
URL: http://llvm.org/viewvc/llvm-project?rev=309169&view=rev
Log:
Disable libxml on i686, because it is a 32 bit architecture and
libxml2.so is for 64 bit.
Modified:
llvm/trunk/cmake/config-ix.cmake
Modified: llvm/trunk/cmake/config-ix.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/config-ix.cmake?rev=309169&r1=309168&r2=309169&view=diff
==============================================================================
--- llvm/trunk/cmake/config-ix.cmake (original)
+++ llvm/trunk/cmake/config-ix.cmake Wed Jul 26 13:22:26 2017
@@ -159,7 +159,7 @@ if( NOT PURE_WINDOWS AND NOT LLVM_USE_SA
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)
More information about the llvm-commits
mailing list