[llvm] r315873 - Search for libxml2 on macOS too.
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 15 12:13:57 PDT 2017
Author: nico
Date: Sun Oct 15 12:13:57 2017
New Revision: 315873
URL: http://llvm.org/viewvc/llvm-project?rev=315873&view=rev
Log:
Search for libxml2 on macOS too.
This allows lld-link to process /manifestinput: flags on macOS too.
Also makes the `REQUIRES: manifesttool` lld tests run on macOS.
Setting LLVM_ENABLE_LIBXML2 to off can suppress this behavior, like on Linux.
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=315873&r1=315872&r2=315873&view=diff
==============================================================================
--- llvm/trunk/cmake/config-ix.cmake (original)
+++ llvm/trunk/cmake/config-ix.cmake Sun Oct 15 12:13:57 2017
@@ -160,7 +160,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) OR APPLE))
find_package(LibXml2)
if (LIBXML2_FOUND)
set(LLVM_LIBXML2_ENABLED 1)
More information about the llvm-commits
mailing list