diff --git a/src/realm/util/backtrace.cpp b/src/realm/util/backtrace.cpp index d71e70b5209..ccb522ebb9e 100644 --- a/src/realm/util/backtrace.cpp +++ b/src/realm/util/backtrace.cpp @@ -23,10 +23,10 @@ #include #include -#ifndef REALM_HAVE_BACKTRACE +#if !defined(REALM_HAVE_BACKTRACE) && (REALM_PLATFORM_APPLE || (defined(__linux__) && defined(__GNUC__))) // we detect the backtrace facility in CMake, but if building outside it we assume // it's available on Apple or Linux/glibc -#define REALM_HAVE_BACKTRACE REALM_PLATFORM_APPLE || (REALM_LINUX && defined(__GNUC__)) +#define REALM_HAVE_BACKTRACE 1 #endif #if REALM_HAVE_BACKTRACE