add some comments

Former-commit-id: 0fc6441c9608f0650003a7ab29dd704166345272
This commit is contained in:
malavan 2021-07-28 20:32:18 +00:00
parent a269f35002
commit c3a6be36e3
2 changed files with 2 additions and 0 deletions

View File

@ -316,6 +316,7 @@ else
endef
endif
# Alpine OS doesn't have support for the execinfo backtrace library we use for debug, so we provide an alternate implementation using libwunwind.
OS := $(shell cat /etc/os-release | grep ID= | head -n 1 | cut -d'=' -f2)
ifeq ($(OS),alpine)
FINAL_CXXFLAGS+=-DUNW_LOCAL_ONLY

View File

@ -51,6 +51,7 @@ typedef ucontext_t sigcontext_t;
#include <cxxabi.h>
#endif /* HAVE_BACKTRACE */
//UNW_LOCAL_ONLY being set means we use libunwind for backtraces instead of execinfo
#ifdef UNW_LOCAL_ONLY
#include <libunwind.h>
#include <cxxabi.h>