From 16837d1f0d9585528b52fa06f9c37f260b3840d8 Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Sat, 30 Sep 2023 07:28:52 -0700 Subject: [PATCH] Cherry-pick BoringSSL RISC-V target support (64-bit only). --- include/ring-core/target.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/ring-core/target.h b/include/ring-core/target.h index 5b46611550..9c9543a294 100644 --- a/include/ring-core/target.h +++ b/include/ring-core/target.h @@ -40,6 +40,9 @@ #elif defined(__MIPSEL__) && defined(__LP64__) #define OPENSSL_64_BIT #define OPENSSL_MIPS64 +#elif defined(__riscv) && __SIZEOF_POINTER__ == 8 +#define OPENSSL_64_BIT +#define OPENSSL_RISCV64 #elif defined(__wasm__) #define OPENSSL_32_BIT #else