]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
[trace] Add aarch64 to supported architectures for zstd_trace 3054/head
authorOscar Shi <ooosssososos@hotmail.com>
Mon, 7 Feb 2022 22:41:07 +0000 (14:41 -0800)
committerGitHub <noreply@github.com>
Mon, 7 Feb 2022 22:41:07 +0000 (14:41 -0800)
Arm Toolchain should support weak symbols

lib/common/zstd_trace.h

index f9121f7d8ed5634f6095418f6df2030bc8a07c75..6215f1e70cfc58f1ee6ad62e58ed383c434ce0ec 100644 (file)
@@ -21,13 +21,13 @@ extern "C" {
  * For now, enable conservatively:
  * - Only GNUC
  * - 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
  * forgotten in the future.
  */
 #if !defined(ZSTD_HAVE_WEAK_SYMBOLS) && \
     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(__CYGWIN__) && !defined(_AIX)
 #  define ZSTD_HAVE_WEAK_SYMBOLS 1