Skip to content

Commit e9e096a

Browse files
authored
Add LZMA dependency for worker tasks when using libc++ (#7724)
1 parent 5a41a95 commit e9e096a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,12 @@ add_ccf_static_library(
284284
${CCF_DIR}/src/tasks/worker.cpp
285285
)
286286
target_link_libraries(ccf_tasks PRIVATE ${CMAKE_DL_LIBS})
287+
if(USE_LIBCXX)
288+
# worker.cpp uses backtrace() which, under libc++, resolves through libunwind.
289+
# On systems where libunwind is built with LZMA support (e.g. Azure Linux),
290+
# this creates a transitive dependency on liblzma.
291+
target_link_libraries(ccf_tasks PRIVATE lzma)
292+
endif()
287293

288294
# Common test args for Python scripts starting up CCF networks
289295
set(WORKER_THREADS

0 commit comments

Comments
 (0)