aboutsummaryrefslogtreecommitdiff
path: root/src/lpm.c
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2023-02-24 21:35:42 -0500
committerAdam Harrison <adamdharrison@gmail.com>2023-02-24 21:35:42 -0500
commitb12cbd8755e42c77fa854ce082a5d23890c65146 (patch)
treed35c104af9a31c1650610e62617d0881322e04c4 /src/lpm.c
parentd17e85ebdb4b1f9204505c1bed1b8dae3b80f2af (diff)
downloadlite-xl-plugin-manager-b12cbd8755e42c77fa854ce082a5d23890c65146.tar.gz
lite-xl-plugin-manager-b12cbd8755e42c77fa854ce082a5d23890c65146.zip
Added in riscv support.
Diffstat (limited to 'src/lpm.c')
-rw-r--r--src/lpm.c4
1 files changed, 4 insertions, 0 deletions
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