summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorwenghongquan <93646063+wenghongquan@users.noreply.github.com>2021-12-09 21:00:33 +0800
committerGitHub <noreply@github.com>2021-12-09 14:00:33 +0100
commit742e9d65ad6b56387dc6bf9a2be1b95c510fd0c4 (patch)
tree0101f6dece6c4fe3f678deffd793c09fc0ea3552 /compiler
parent502ac4ed5e539146d31920d50020ae35668f4755 (diff)
downloadNim-742e9d65ad6b56387dc6bf9a2be1b95c510fd0c4.tar.gz
Add support for LoongArch (#19223)
* Add support for LoongArch

* Update compiler/installer.ini

Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
Diffstat (limited to 'compiler')
-rw-r--r--compiler/platform.nim5
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/platform.nim b/compiler/platform.nim
index eb1398677..4e6054d5c 100644
--- a/compiler/platform.nim
+++ b/compiler/platform.nim
@@ -202,7 +202,7 @@ type
     cpuPowerpc64el, cpuSparc, cpuVm, cpuHppa, cpuIa64, cpuAmd64, cpuMips,
     cpuMipsel, cpuArm, cpuArm64, cpuJS, cpuNimVM, cpuAVR, cpuMSP430,
     cpuSparc64, cpuMips64, cpuMips64el, cpuRiscV32, cpuRiscV64, cpuEsp, cpuWasm32,
-    cpuE2k
+    cpuE2k, cpuLoongArch64
 
 type
   TInfoCPU* = tuple[name: string, intSize: int, endian: Endianness,
@@ -238,7 +238,8 @@ const
     (name: "riscv64", intSize: 64, endian: littleEndian, floatSize: 64, bit: 64),
     (name: "esp", intSize: 32, endian: littleEndian, floatSize: 64, bit: 32),
     (name: "wasm32", intSize: 32, endian: littleEndian, floatSize: 64, bit: 32),
-    (name: "e2k", intSize: 64, endian: littleEndian, floatSize: 64, bit: 64)]
+    (name: "e2k", intSize: 64, endian: littleEndian, floatSize: 64, bit: 64),
+    (name: "loongarch64", intSize: 64, endian: littleEndian, floatSize: 64, bit: 64)]
 
 type
   Target* = object