authorgravatar for git@notcalle.xyzCalle Englund <git@notcalle.xyz> 2020-09-18 16:40:20+02:00
committergravatar for git@notcalle.xyzCalle Englund <git@notcalle.xyz> 2020-09-18 17:03:50+02:00
logd08842887f4c566186ad3babacd9c155233663b3
tree77bd880bc465a2d999aee3f3db13b7f80e35c350
parentfbde15fdf41024d977401ab2a5c52e60b67d48fa
signature Commit is signed but in an unrecognized format.

Workaround MacOS build failure due to #6087


1 files changed, 6 insertions(+), 0 deletions(-)

CMakeLists.txt+6
......@@ -56,6 +56,7 @@ set(ZIG_PREFER_CLANG_CPP_DYLIB off CACHE BOOL "Try to link against -lclang-cpp")
5656set(ZIG_WORKAROUND_4799 off CACHE BOOL "workaround for https://github.com/ziglang/zig/issues/4799")
5757set(ZIG_WORKAROUND_POLLY_SO off CACHE STRING "workaround for https://github.com/ziglang/zig/issues/4799")
5858set(ZIG_USE_CCACHE off CACHE BOOL "Use ccache if available")
59set(ZIG_WORKAROUND_6087 off CACHE BOOL "workaround for https://github.com/ziglang/zig/issues/6087")
5960
6061if(CCACHE_PROGRAM AND ZIG_USE_CCACHE)
6162 SET_PROPERTY(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CCACHE_PROGRAM}")
......@@ -90,6 +91,11 @@ if(APPLE AND ZIG_STATIC)
9091 list(APPEND LLVM_LIBRARIES "${ZLIB}")
9192endif()
9293
94if(APPLE AND ZIG_WORKAROUND_6087)
95 list(REMOVE_ITEM LLVM_LIBRARIES "-llibxml2.tbd")
96 list(APPEND LLVM_LIBRARIES "-lxml2")
97endif()
98
9399if(APPLE AND ZIG_WORKAROUND_4799)
94100 # eg: ${CMAKE_PREFIX_PATH} could be /usr/local/opt/llvm/
95101 list(APPEND LLVM_LIBRARIES "-Wl,${CMAKE_PREFIX_PATH}/lib/libPolly.a" "-Wl,${CMAKE_PREFIX_PATH}/lib/libPollyPPCG.a" "-Wl,${CMAKE_PREFIX_PATH}/lib/libPollyISL.a")