mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 02:41:59 +00:00
116af7dfb9
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
14 lines
431 B
CMake
14 lines
431 B
CMake
option (USE_UNWIND "Enable libunwind (better stacktraces)" ${ENABLE_LIBRARIES})
|
|
|
|
if (USE_UNWIND)
|
|
add_subdirectory(contrib/libunwind-cmake)
|
|
set (UNWIND_LIBRARIES unwind)
|
|
set (EXCEPTION_HANDLING_LIBRARY ${UNWIND_LIBRARIES})
|
|
|
|
message (STATUS "Using libunwind: ${UNWIND_LIBRARIES}")
|
|
else ()
|
|
set (EXCEPTION_HANDLING_LIBRARY gcc_eh)
|
|
endif ()
|
|
|
|
message (STATUS "Using exception handler: ${EXCEPTION_HANDLING_LIBRARY}")
|