llvm.org GIT mirror llvm / d03e64f
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315873 91177308-0d34-0410-b5e6-96231b3b80d8 Nico Weber 2 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
159159 find_library(ICONV_LIBRARY_PATH NAMES iconv libiconv libiconv-2 c)
160160 set(LLVM_LIBXML2_ENABLED 0)
161161 set(LIBXML2_FOUND 0)
162 if((LLVM_ENABLE_LIBXML2) AND (CMAKE_SYSTEM_NAME MATCHES "Linux") AND (ICONV_LIBRARY_PATH))
162 if((LLVM_ENABLE_LIBXML2) AND ((CMAKE_SYSTEM_NAME MATCHES "Linux") AND (ICONV_LIBRARY_PATH) OR APPLE))
163163 find_package(LibXml2)
164164 if (LIBXML2_FOUND)
165165 set(LLVM_LIBXML2_ENABLED 1)