summary refs log tree commit diff stats
path: root/lib/system
diff options
context:
space:
mode:
authorDanil Yarantsev <tiberiumk12@gmail.com>2021-10-21 18:01:48 +0300
committerGitHub <noreply@github.com>2021-10-21 17:01:48 +0200
commit5e2b9341f343c3f80f92cfd160a0186f23521a42 (patch)
tree3d8fcf0b6cee4c1cf3b720fd475db3486fb87fc0 /lib/system
parent1a45da9150c6cf5da324e754f49dc4cf957f1180 (diff)
downloadNim-5e2b9341f343c3f80f92cfd160a0186f23521a42.tar.gz
Add Elbrus 2000 architecture (#19024)
* Add Elbrus 2000 architecture

* Add e2k to niminst

* Update compiler/installer.ini

Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
Diffstat (limited to 'lib/system')
-rw-r--r--lib/system/platforms.nim4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/system/platforms.nim b/lib/system/platforms.nim
index bd6541b6a..5bca8cb1c 100644
--- a/lib/system/platforms.nim
+++ b/lib/system/platforms.nim
@@ -35,7 +35,8 @@ type
     msp430,                    ## TI MSP430 microcontroller
     riscv32,                   ## RISC-V 32-bit processor
     riscv64,                   ## RISC-V 64-bit processor
-    wasm32                     ## WASM, 32-bit
+    wasm32,                    ## WASM, 32-bit
+    e2k                        ## MCST Elbrus 2000
 
   OsPlatform* {.pure.} = enum ## the OS this program will run on.
     none, dos, windows, os2, linux, morphos, skyos, solaris,
@@ -93,5 +94,6 @@ const
                elif defined(riscv32): CpuPlatform.riscv32
                elif defined(riscv64): CpuPlatform.riscv64
                elif defined(wasm32): CpuPlatform.wasm32
+               elif defined(e2k): CpuPlatform.e2k
                else: CpuPlatform.none
     ## the CPU this program will run on.