Commit e56907db authored by Dan Melnic's avatar Dan Melnic Committed by Facebook GitHub Bot

Define FOLLY_ELF_NATIVE_CLASS if not defined and __ELF_NATIVE_CLASS is available

Summary: Define FOLLY_ELF_NATIVE_CLASS if not defined and __ELF_NATIVE_CLASS is available

Reviewed By: yfeldblum

Differential Revision: D23307593

fbshipit-source-id: bb4b7a82a58a9ba9d4725dd770a2e5b7109b0318
parent 85fd5147
...@@ -565,13 +565,3 @@ constexpr auto kCpplibVer = 0; ...@@ -565,13 +565,3 @@ constexpr auto kCpplibVer = 0;
#define FOLLY_HAS_STRING_VIEW 0 #define FOLLY_HAS_STRING_VIEW 0
#endif #endif
#endif // __has_include #endif // __has_include
#if defined(__linux__)
#define FOLLY_ELF_NATIVE_CLASS __ELF_NATIVE_CLASS
#elif defined(__FreeBSD__)
#if defined(__LP64__)
#define FOLLY_ELF_NATIVE_CLASS 64
#else // __linux__
#define FOLLY_ELF_NATIVE_CLASS 32
#endif
#endif // __linux__
...@@ -34,6 +34,16 @@ ...@@ -34,6 +34,16 @@
#define STT_GNU_IFUNC 10 #define STT_GNU_IFUNC 10
#endif #endif
#if defined(__ELF_NATIVE_CLASS)
#define FOLLY_ELF_NATIVE_CLASS __ELF_NATIVE_CLASS
#elif defined(__FreeBSD__)
#if defined(__LP64__)
#define FOLLY_ELF_NATIVE_CLASS 64
#else
#define FOLLY_ELF_NATIVE_CLASS 32
#endif
#endif // __ELF_NATIVE_CLASS
namespace folly { namespace folly {
namespace symbolizer { namespace symbolizer {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment