added cpptrace
This commit is contained in:
parent
f3dfadddfa
commit
68a5f90715
@ -30,6 +30,7 @@ dcli11_warnings_as_errors
|
||||
dcmake_cxx_flags
|
||||
dcpphttplib_openssl_support
|
||||
dcpphttplib_tcp_nodelay
|
||||
dcpptrace_static_define
|
||||
dcurl_ca_bundle
|
||||
dcurl_ca_fallback
|
||||
dcurl_disable_ldap
|
||||
|
@ -1,3 +1,11 @@
|
||||
add_definitions(-DCPPTRACE_STATIC_DEFINE)
|
||||
|
||||
if(PROJECT_IS_MINGW)
|
||||
add_definitions(-DCPPTRACE_UNWIND_WITH_DBGHELP)
|
||||
else()
|
||||
add_definitions(-DCPPTRACE_UNWIND_WITH_LIBUNWIND)
|
||||
endif()
|
||||
|
||||
include(FetchContent)
|
||||
FetchContent_Declare(
|
||||
cpptrace
|
||||
|
@ -31,8 +31,6 @@ using namespace repertory;
|
||||
|
||||
auto main(int argc, char **argv) -> int {
|
||||
cpptrace::register_terminate_handler();
|
||||
cpptrace::generate_trace().print();
|
||||
|
||||
if (not repertory::project_initialize()) {
|
||||
return -1;
|
||||
}
|
||||
@ -116,6 +114,8 @@ auto main(int argc, char **argv) -> int {
|
||||
}
|
||||
}
|
||||
|
||||
throw std::runtime_error("test");
|
||||
|
||||
int mount_result{};
|
||||
if (res == exit_code::success) {
|
||||
if (utils::cli::has_option(args, utils::cli::options::help_option)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user