| ... | ... | @@ -56,6 +56,7 @@ set(ZIG_PREFER_CLANG_CPP_DYLIB off CACHE BOOL "Try to link against -lclang-cpp") |
| 56 | 56 | set(ZIG_WORKAROUND_4799 off CACHE BOOL "workaround for https://github.com/ziglang/zig/issues/4799") |
| 57 | 57 | set(ZIG_WORKAROUND_POLLY_SO off CACHE STRING "workaround for https://github.com/ziglang/zig/issues/4799") |
| 58 | 58 | set(ZIG_USE_CCACHE off CACHE BOOL "Use ccache if available") |
| 59 | set(ZIG_WORKAROUND_6087 off CACHE BOOL "workaround for https://github.com/ziglang/zig/issues/6087") |
| 59 | 60 | |
| 60 | 61 | if(CCACHE_PROGRAM AND ZIG_USE_CCACHE) |
| 61 | 62 | SET_PROPERTY(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CCACHE_PROGRAM}") |
| ... | ... | @@ -90,6 +91,11 @@ if(APPLE AND ZIG_STATIC) |
| 90 | 91 | list(APPEND LLVM_LIBRARIES "${ZLIB}") |
| 91 | 92 | endif() |
| 92 | 93 | |
| 94 | if(APPLE AND ZIG_WORKAROUND_6087) |
| 95 | list(REMOVE_ITEM LLVM_LIBRARIES "-llibxml2.tbd") |
| 96 | list(APPEND LLVM_LIBRARIES "-lxml2") |
| 97 | endif() |
| 98 | |
| 93 | 99 | if(APPLE AND ZIG_WORKAROUND_4799) |
| 94 | 100 | # eg: ${CMAKE_PREFIX_PATH} could be /usr/local/opt/llvm/ |
| 95 | 101 | 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") |