mirror of
https://github.com/ziglang/zig.git
synced 2025-01-10 12:11:33 +00:00
Workaround MacOS build failure due to #6087
This commit is contained in:
parent
fbde15fdf4
commit
d08842887f
@ -56,6 +56,7 @@ set(ZIG_PREFER_CLANG_CPP_DYLIB off CACHE BOOL "Try to link against -lclang-cpp")
|
|||||||
set(ZIG_WORKAROUND_4799 off CACHE BOOL "workaround for https://github.com/ziglang/zig/issues/4799")
|
set(ZIG_WORKAROUND_4799 off CACHE BOOL "workaround for https://github.com/ziglang/zig/issues/4799")
|
||||||
set(ZIG_WORKAROUND_POLLY_SO off CACHE STRING "workaround for https://github.com/ziglang/zig/issues/4799")
|
set(ZIG_WORKAROUND_POLLY_SO off CACHE STRING "workaround for https://github.com/ziglang/zig/issues/4799")
|
||||||
set(ZIG_USE_CCACHE off CACHE BOOL "Use ccache if available")
|
set(ZIG_USE_CCACHE off CACHE BOOL "Use ccache if available")
|
||||||
|
set(ZIG_WORKAROUND_6087 off CACHE BOOL "workaround for https://github.com/ziglang/zig/issues/6087")
|
||||||
|
|
||||||
if(CCACHE_PROGRAM AND ZIG_USE_CCACHE)
|
if(CCACHE_PROGRAM AND ZIG_USE_CCACHE)
|
||||||
SET_PROPERTY(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CCACHE_PROGRAM}")
|
SET_PROPERTY(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CCACHE_PROGRAM}")
|
||||||
@ -90,6 +91,11 @@ if(APPLE AND ZIG_STATIC)
|
|||||||
list(APPEND LLVM_LIBRARIES "${ZLIB}")
|
list(APPEND LLVM_LIBRARIES "${ZLIB}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(APPLE AND ZIG_WORKAROUND_6087)
|
||||||
|
list(REMOVE_ITEM LLVM_LIBRARIES "-llibxml2.tbd")
|
||||||
|
list(APPEND LLVM_LIBRARIES "-lxml2")
|
||||||
|
endif()
|
||||||
|
|
||||||
if(APPLE AND ZIG_WORKAROUND_4799)
|
if(APPLE AND ZIG_WORKAROUND_4799)
|
||||||
# eg: ${CMAKE_PREFIX_PATH} could be /usr/local/opt/llvm/
|
# eg: ${CMAKE_PREFIX_PATH} could be /usr/local/opt/llvm/
|
||||||
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")
|
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")
|
||||||
|
Loading…
Reference in New Issue
Block a user