| ... | ... | @@ -54,6 +54,7 @@ set(ZIG_STATIC_LLVM off CACHE BOOL "Prefer linking against static LLVM libraries |
| 54 | 54 | set(ZIG_ENABLE_MEM_PROFILE off CACHE BOOL "Activate memory usage instrumentation") |
| 55 | 55 | 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 | set(ZIG_WORKAROUND_POLLY_SO off CACHE STRING "workaround for https://github.com/ziglang/zig/issues/4799") |
| 57 | 58 | set(ZIG_USE_CCACHE off CACHE BOOL "Use ccache if available") |
| 58 | 59 | |
| 59 | 60 | if(CCACHE_PROGRAM AND ZIG_USE_CCACHE) |
| ... | ... | @@ -409,6 +410,9 @@ target_link_libraries(zig_cpp LINK_PUBLIC |
| 409 | 410 | ${LLD_LIBRARIES} |
| 410 | 411 | ${LLVM_LIBRARIES} |
| 411 | 412 | ) |
| 413 | if(ZIG_WORKAROUND_POLLY_SO) |
| 414 | target_link_libraries(zig_cpp LINK_PUBLIC "-Wl,${ZIG_WORKAROUND_POLLY_SO}") |
| 415 | endif() |
| 412 | 416 | |
| 413 | 417 | add_library(opt_c_util STATIC ${OPTIMIZED_C_SOURCES}) |
| 414 | 418 | set_target_properties(opt_c_util PROPERTIES |