diff --git a/libunwind/src/config.h b/libunwind/src/config.h index b14e591ba425..69f5cc1df0a9 100644 --- a/libunwind/src/config.h +++ b/libunwind/src/config.h @@ -86,11 +86,14 @@ #endif #endif -#define _LIBUNWIND_BUILD_ZERO_COST_APIS \ - (defined(__i386__) || defined(__x86_64__) || \ - (!defined(__APPLE__) && defined(__arm__)) || \ - (defined(__arm64__) || defined(__aarch64__)) || \ - (defined(__APPLE__) && defined(__mips__))) +#if defined(__i386__) || defined(__x86_64__) || \ + (!defined(__APPLE__) && defined(__arm__)) || \ + (defined(__arm64__) || defined(__aarch64__)) || \ + (defined(__APPLE__) && defined(__mips__)) +#define _LIBUNWIND_BUILD_ZERO_COST_APIS 1 +#else +#define _LIBUNWIND_BUILD_ZERO_COST_APIS 0 +#endif // Macros that define away in non-Debug builds #ifdef NDEBUG