From f25d4bae9d8b30813b73672a457cde7a4bbe0a41 Mon Sep 17 00:00:00 2001 From: Maxim Samsonov Date: Tue, 3 Sep 2024 23:21:43 +0300 Subject: [PATCH] Update Elf.cpp --- folly/debugging/symbolizer/Elf.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/folly/debugging/symbolizer/Elf.cpp b/folly/debugging/symbolizer/Elf.cpp index 0e26bdb3229..bf7c45ff4c8 100644 --- a/folly/debugging/symbolizer/Elf.cpp +++ b/folly/debugging/symbolizer/Elf.cpp @@ -40,12 +40,14 @@ #if defined(__ELF_NATIVE_CLASS) #define FOLLY_ELF_NATIVE_CLASS __ELF_NATIVE_CLASS -#elif defined(__ANDROID__) -#define FOLLY_ELF_NATIVE_CLASS __WORDSIZE -#elif defined(__LP64__) +#elif defined(__GNUC__) +#if defined(__LP64__) #define FOLLY_ELF_NATIVE_CLASS 64 #else #define FOLLY_ELF_NATIVE_CLASS 32 +#endif +#elif defined(__ANDROID__) +#define FOLLY_ELF_NATIVE_CLASS __WORDSIZE #endif // __ELF_NATIVE_CLASS namespace folly {