[llvm] r308689 - Only enable libxml2 on linux, because systems like android lack libiconv
Eric Beckmann via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 20 16:02:49 PDT 2017
Author: ecbeckmann
Date: Thu Jul 20 16:02:49 2017
New Revision: 308689
URL: http://llvm.org/viewvc/llvm-project?rev=308689&view=rev
Log:
Only enable libxml2 on linux, because systems like android lack libiconv
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=308689&r1=308688&r2=308689&view=diff
==============================================================================
--- llvm/trunk/cmake/config-ix.cmake (original)
+++ llvm/trunk/cmake/config-ix.cmake Thu Jul 20 16:02:49 2017
@@ -158,7 +158,7 @@ if( NOT PURE_WINDOWS AND NOT LLVM_USE_SA
set(LLVM_LIBXML2_ENABLED 0)
set(LIBXML2_FOUND 0)
- if(LLVM_ENABLE_LIBXML2)
+ if(LLVM_ENABLE_LIBXML2 AND CMAKE_SYSTEM_NAME MATCHES "Linux")
find_package(LibXml2)
if (LIBXML2_FOUND)
set(LLVM_LIBXML2_ENABLED 1)
More information about the llvm-commits
mailing list