-
Notifications
You must be signed in to change notification settings - Fork 2
Installing
Floweynt edited this page Dec 22, 2022
·
5 revisions
Make sure that you have the supported compilers:
- MSVC
- g++
- clang
OS | WinApi | execinfo.h |
libbacktrace | libunwind |
---|---|---|---|---|
Windows | ✔️ | ❌ | ✔️ | ❔ |
Linux | ❌ | ✔️ | ✔️ | ✔️ |
MacOS | ❌ | ✔️ | ✔️ | ✔️ |
OS | No-op | WinApi | libbfd | libbacktrace |
---|---|---|---|---|
Windows | ✔️ | ✔️ | ❌ | ✔️ |
Linux | ✔️ | ❌ | ✔️ | ✔️ |
MacOS | ✔️ | ❌ | ✔️ | ✔️ |
No deps needed
You need either libbacktrace or libbfd. Depending on which you use, you'll need to add the flags -DUSE_LIBBDF_DECODE=ON
or -DUSE_BACKTRACE_DECODE=ON
Clone the project as a sub(directory|module), and add
add_subdirectory(stacktrace)
target_include_directories(<project> PUBLIC "${PROJECT_SOURCE_DIR}/stacktrace/include")
add_dependencies(<project> stacktrace)
target_link_libraries(<project> PRIVATE stacktrace)