Skip to content

Commit

Permalink
cmake: allow to disable symbolize
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiud committed Mar 30, 2021
1 parent d4e8eba commit 33b7311
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ if (WITH_SYMBOLIZE)
}
]=] HAVE_SYMBOLIZE)

cmake_pop_check_state ()
cmake_pop_check_state ()

if (HAVE_SYMBOLIZE)
set (HAVE_STACKTRACE 1)
Expand Down
13 changes: 0 additions & 13 deletions src/utilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,19 +127,6 @@
# define HAVE_STACKTRACE
#endif

#ifndef HAVE_SYMBOLIZE
// defined by gcc
#if defined(__ELF__) && defined(OS_LINUX)
# define HAVE_SYMBOLIZE
#elif defined(OS_MACOSX) && defined(HAVE_DLADDR)
// Use dladdr to symbolize.
# define HAVE_SYMBOLIZE
#elif defined(OS_WINDOWS)
// Use DbgHelp to symbolize
# define HAVE_SYMBOLIZE
#endif
#endif // !defined(HAVE_SYMBOLIZE)

#ifndef ARRAYSIZE
// There is a better way, but this is good enough for our purpose.
# define ARRAYSIZE(a) (sizeof(a) / sizeof(*(a)))
Expand Down

0 comments on commit 33b7311

Please sign in to comment.