Skip to content

Commit 0a11dc0

Browse files
fix: Linux build targeting RISC-V (#972)
--------- Signed-off-by: Joel Winarske <[email protected]> Co-authored-by: Mischan Toosarani-Hausberger <[email protected]>
1 parent fda905a commit 0a11dc0

File tree

2 files changed

+22
-10
lines changed

2 files changed

+22
-10
lines changed

CHANGELOG.md

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,25 @@
11
# Changelog
22

3-
## 0.7.1
3+
## Unreleased
44

55
**Features**:
66

77
- Add optional Gzip transport compression via build option `SENTRY_TRANSPORT_COMPRESSION`. Requires system `zlib`. ([#954](https://github.com/getsentry/sentry-native/pull/954))
8-
- Add user feedback capability to the Native SDK ([#966](https://github.com/getsentry/sentry-native/pull/966))
8+
9+
**Fixes**:
10+
11+
- Fix the Linux build when targeting RISC-V. ([#972](https://github.com/getsentry/sentry-native/pull/972))
12+
13+
**Thank you**:
14+
15+
- [@Strive-Sun](https://github.com/Strive-Sun)
16+
- [@jwinarske](https://github.com/jwinarske)
17+
18+
## 0.7.1
19+
20+
**Features**:
21+
22+
- Add user feedback capability to the Native SDK. ([#966](https://github.com/getsentry/sentry-native/pull/966))
923

1024
**Internal**:
1125

@@ -15,10 +29,6 @@
1529

1630
- Add usage of the breadcrumb `data` property to the example. [#951](https://github.com/getsentry/sentry-native/pull/951)
1731

18-
**Thank you**:
19-
20-
- [@Strive-Sun](https://github.com/Strive-Sun)
21-
2232
## 0.7.0
2333

2434
**Breaking changes**:

src/modulefinder/sentry_modulefinder_linux.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -568,12 +568,14 @@ try_append_module(sentry_value_t modules, const sentry_module_t *module)
568568
}
569569

570570
// copied from:
571-
// https://github.com/google/breakpad/blob/216cea7bca53fa441a3ee0d0f5fd339a3a894224/src/client/linux/minidump_writer/linux_dumper.h#L61-L70
571+
// https://github.com/google/breakpad/blob/eb28e7ed9c1c1e1a717fa34ce0178bf471a6311f/src/client/linux/minidump_writer/linux_dumper.h#L61-L69
572572
#if defined(__i386) || defined(__ARM_EABI__) \
573-
|| (defined(__mips__) && _MIPS_SIM == _ABIO32)
573+
|| (defined(__mips__) && _MIPS_SIM == _ABIO32) \
574+
|| (defined(__riscv) && __riscv_xlen == 32)
574575
typedef Elf32_auxv_t elf_aux_entry;
575-
#elif defined(__x86_64) || defined(__aarch64__) || defined(__powerpc64__) \
576-
|| (defined(__mips__) && _MIPS_SIM != _ABIO32)
576+
#elif defined(__x86_64) || defined(__aarch64__) \
577+
|| (defined(__mips__) && _MIPS_SIM != _ABIO32) \
578+
|| (defined(__riscv) && __riscv_xlen == 64)
577579
typedef Elf64_auxv_t elf_aux_entry;
578580
#endif
579581

0 commit comments

Comments
 (0)