Skip to content

Commit 9e47401

Browse files
committed
ignore on macOS
1 parent 34f3548 commit 9e47401

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

llvm/cmake/modules/FindLibXml2.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ find_library(LIBXML2_SHARED_LIBRARY NAMES xml2 libxml2 libxml2_a
2525
${PC_LIBXML_LIBRARY_DIRS}
2626
)
2727

28+
# This is a system lib on macOS, so we don't need to avoid the dependency
29+
if(APPLE)
30+
set(LLVM_USE_STATIC_LIBXML2 OFF)
31+
endif()
32+
2833
if(LLVM_USE_STATIC_LIBXML2)
2934
set(_original_suffixes ${CMAKE_FIND_LIBRARY_SUFFIXES})
3035
if(UNIX)

0 commit comments

Comments
 (0)