From b12cbd8755e42c77fa854ce082a5d23890c65146 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Fri, 24 Feb 2023 21:35:42 -0500 Subject: Added in riscv support. --- src/lpm.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/lpm.c') diff --git a/src/lpm.c b/src/lpm.c index 8dd2dff..c6d1e98 100644 --- a/src/lpm.c +++ b/src/lpm.c @@ -1058,6 +1058,10 @@ static const luaL_Reg system_lib[] = { #define ARCH_PROCESSOR "aarch64" #elif defined(__arm__) || defined(_M_ARM) #define ARCH_PROCESSOR "arm" + #edif __riscv_xlen == 32 + #define ARCH_PROCESSOR "riscv32" + #elif __riscv_xlen == 64 + #define ARCH_PROCESSOR "riscv64" #else #error "Please define -DARCH_PROCESSOR." #endif -- cgit v1.2.3