-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
webrtc-audio-processing: Enable RISC-V
- Loading branch information
1 parent
cf8441d
commit f13cf5e
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
pkgs/development/libraries/webrtc-audio-processing/enable-riscv.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
diff --git a/webrtc/typedefs.h b/webrtc/typedefs.h | ||
index d875490..ce1f3e8 100644 | ||
--- a/webrtc/typedefs.h | ||
+++ b/webrtc/typedefs.h | ||
@@ -26,6 +26,13 @@ | ||
#elif defined(__aarch64__) | ||
#define WEBRTC_ARCH_64_BITS | ||
#define WEBRTC_ARCH_LITTLE_ENDIAN | ||
+#elif defined(__riscv) || defined(__riscv__) | ||
+#define WEBRTC_ARCH_LITTLE_ENDIAN | ||
+#if __riscv_xlen == 64 | ||
+#define WEBRTC_ARCH_64_BITS | ||
+#else | ||
+#define WEBRTC_ARCH_32_BITS | ||
+#endif | ||
#elif defined(_M_IX86) || defined(__i386__) | ||
#define WEBRTC_ARCH_X86_FAMILY | ||
#define WEBRTC_ARCH_X86 |