From c3a6be36e3288375dd185c23253d13aa94600908 Mon Sep 17 00:00:00 2001 From: malavan Date: Wed, 28 Jul 2021 20:32:18 +0000 Subject: [PATCH] add some comments Former-commit-id: 0fc6441c9608f0650003a7ab29dd704166345272 --- src/Makefile | 1 + src/debug.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/Makefile b/src/Makefile index c8075236e..75dffb24e 100644 --- a/src/Makefile +++ b/src/Makefile @@ -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 diff --git a/src/debug.cpp b/src/debug.cpp index 39a22e297..a9614b61e 100644 --- a/src/debug.cpp +++ b/src/debug.cpp @@ -51,6 +51,7 @@ typedef ucontext_t sigcontext_t; #include #endif /* HAVE_BACKTRACE */ +//UNW_LOCAL_ONLY being set means we use libunwind for backtraces instead of execinfo #ifdef UNW_LOCAL_ONLY #include #include