From 133298d876ca424a2baa77bcd51f0096998749e2 Mon Sep 17 00:00:00 2001 From: WHR Date: Tue, 7 Jan 2025 15:04:33 +0800 Subject: [PATCH] Fix linking error with libunwind when build for FreeBSD with GCC, by preferring easylogging++ when GCC is being used --- src/common/stack_trace.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/stack_trace.cpp b/src/common/stack_trace.cpp index 2781b1e87..91b18a609 100644 --- a/src/common/stack_trace.cpp +++ b/src/common/stack_trace.cpp @@ -26,7 +26,7 @@ // STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF // THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -#if !defined __GNUC__ || defined __MINGW32__ || defined __MINGW64__ || defined __ANDROID__ || defined __FreeBSD__ +#if !defined __GNUC__ || defined __clang__ || defined __MINGW32__ || defined __MINGW64__ || defined __ANDROID__ #define USE_UNWIND #else #define ELPP_FEATURE_CRASH_LOG 1