Skip to content

Commit

Permalink
Merge pull request #4114 from Adenilson/trace01
Browse files Browse the repository at this point in the history
[riscv] Enable support for weak symbols
  • Loading branch information
Cyan4973 authored Aug 9, 2024
2 parents 10e2a80 + 6dbd49b commit ee1fc7e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/common/zstd_trace.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@ extern "C" {
* For now, enable conservatively:
* - Only GNUC
* - Only ELF
* - Only x86-64, i386 and aarch64
* - Only x86-64, i386, aarch64 and risc-v.
* 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(__aarch64__)) && \
(defined(__x86_64__) || defined(_M_X64) || defined(__i386__) || \
defined(_M_IX86) || defined(__aarch64__) || defined(__riscv)) && \
!defined(__APPLE__) && !defined(_WIN32) && !defined(__MINGW32__) && \
!defined(__CYGWIN__) && !defined(_AIX)
# define ZSTD_HAVE_WEAK_SYMBOLS 1
Expand Down

0 comments on commit ee1fc7e

Please sign in to comment.