mirror of
https://github.com/apache/impala.git
synced 2026-01-04 09:00:56 -05:00
This changes add breakpad crash handling support to catalogd, impalad, and statestored. The destination folder for minidump files can be configured via the 'minidump_path' command line flag. Leaving it empty will disable minidump generation. The daemons will rotate minidump files. The number of files to keep can be configured with the 'max_minidumps' command line flag. Change-Id: I7a37a38488716ffe34296f3490ae291bbb7228d6 Reviewed-on: http://gerrit.cloudera.org:8080/2028 Reviewed-by: Lars Volker <lv@cloudera.com> Tested-by: Internal Jenkins
39 lines
996 B
CMake
39 lines
996 B
CMake
# - Find breakpad headers and lib.
|
|
# This module defines
|
|
# BREAKPAD_INCLUDE_DIR, directory containing headers
|
|
# BREAKPAD_STATIC_LIB, path to libbreakpad_client.a
|
|
# breakpad, imported static library
|
|
|
|
set(BREAKPAD_SEARCH_LIB_PATH
|
|
${BREAKPAD_ROOT}/lib
|
|
)
|
|
|
|
set(BREAKPAD_INCLUDE_DIR
|
|
${BREAKPAD_ROOT}/include/breakpad
|
|
)
|
|
|
|
find_library(BREAKPAD_LIB_PATH NAMES breakpad_client
|
|
PATHS ${BREAKPAD_SEARCH_LIB_PATH}
|
|
NO_DEFAULT_PATH
|
|
DOC "Breakpad library"
|
|
)
|
|
|
|
if (BREAKPAD_LIB_PATH)
|
|
set(BREAKPAD_LIBS ${BREAKPAD_SEARCH_LIB_PATH})
|
|
set(BREAKPAD_STATIC_LIB ${BREAKPAD_SEARCH_LIB_PATH}/libbreakpad_client.a)
|
|
set(BREAKPAD_FOUND TRUE)
|
|
add_library(breakpad STATIC IMPORTED)
|
|
set_target_properties(breakpad PROPERTIES IMPORTED_LOCATION "${BREAKPAD_STATIC_LIB}")
|
|
else ()
|
|
message(FATAL_ERROR "Breakpad library NOT found. "
|
|
"in ${BREAKPAD_SEARCH_LIB_PATH}")
|
|
set(BREAKPAD_FOUND FALSE)
|
|
endif ()
|
|
|
|
mark_as_advanced(
|
|
BREAKPAD_INCLUDE_DIR
|
|
BREAKPAD_LIBS
|
|
BREAKPAD_STATIC_LIB
|
|
breakpad
|
|
)
|