[trace] Add aarch64 to supported architectures for zstd_trace

Arm Toolchain should support weak symbols
This commit is contained in:
Oscar Shi
2022-02-07 14:41:07 -08:00
committed by GitHub
parent b848c167ab
commit fede1d3abe
+2 -2
View File
@@ -21,13 +21,13 @@ extern "C" {
* For now, enable conservatively: * For now, enable conservatively:
* - Only GNUC * - Only GNUC
* - Only ELF * - Only ELF
* - Only x86-64 and i386 * - Only x86-64, i386 and aarch64
* Also, explicitly disable on platforms known not to work so they aren't * Also, explicitly disable on platforms known not to work so they aren't
* forgotten in the future. * forgotten in the future.
*/ */
#if !defined(ZSTD_HAVE_WEAK_SYMBOLS) && \ #if !defined(ZSTD_HAVE_WEAK_SYMBOLS) && \
defined(__GNUC__) && defined(__ELF__) && \ defined(__GNUC__) && defined(__ELF__) && \
(defined(__x86_64__) || defined(_M_X64) || defined(__i386__) || defined(_M_IX86)) && \ (defined(__x86_64__) || defined(_M_X64) || defined(__i386__) || defined(_M_IX86) || defined(__aarch64__)) && \
!defined(__APPLE__) && !defined(_WIN32) && !defined(__MINGW32__) && \ !defined(__APPLE__) && !defined(_WIN32) && !defined(__MINGW32__) && \
!defined(__CYGWIN__) && !defined(_AIX) !defined(__CYGWIN__) && !defined(_AIX)
# define ZSTD_HAVE_WEAK_SYMBOLS 1 # define ZSTD_HAVE_WEAK_SYMBOLS 1