test PREFER_LIBGCC_UNWINDER via defined()

Our newly updated cmake bits now define it to empty, when it is
enabled, so we want to test it right. Autoconf stuff behaves the same
as before.
This commit is contained in:
Aliaksey Kandratsenka 2023-12-31 21:23:25 -05:00
parent bbc03edc4d
commit 6299ae9869

View File

@ -197,7 +197,7 @@ struct GetStackImplementation {
// historically we defaulted to frame pointer unwinder whenever
// --enable-frame-pointers is given. So we keep this behavior.
#define PREFER_FP_UNWINDER 1
#elif TCMALLOC_DONT_PREFER_LIBUNWIND && !PREFER_LIBGCC_UNWINDER
#elif TCMALLOC_DONT_PREFER_LIBUNWIND && !defined(PREFER_LIBGCC_UNWINDER)
#define PREFER_FP_UNWINDER 1
#else
#define PREFER_FP_UNWINDER 0