aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/include
diff options
context:
space:
mode:
authorznley <shanjiantao@loongson.cn>2024-05-18 07:18:59 +0000
committerznley <shanjiantao@loongson.cn>2024-05-18 07:18:59 +0000
commitc1647a74c5a6055fd901c771a929ad0c8308f370 (patch)
treee6392d89e002fd6c22e8545363e950b9611a4498 /src/include
parentAdd `with-env`. (diff)
Add LoongArch64 support
Diffstat (limited to 'src/include')
-rw-r--r--src/include/janet.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/janet.h b/src/include/janet.h
index 195c1c47..49430e55 100644
--- a/src/include/janet.h
+++ b/src/include/janet.h
@@ -112,7 +112,8 @@ extern "C" {
|| defined(__s390x__) /* S390 64-bit (BE) */ \
|| (defined(__ppc64__) || defined(__PPC64__)) \
|| defined(__aarch64__) /* ARM 64-bit */ \
- || (defined(__riscv) && (__riscv_xlen == 64)) /* RISC-V 64-bit */
+ || (defined(__riscv) && (__riscv_xlen == 64)) /* RISC-V 64-bit */ \
+ || defined(__loongarch64) /* LoongArch64 64-bit */
#define JANET_64 1
#else
#define JANET_32 1