diff options
author | James Cowgill <jcowgill@users.noreply.github.com> | 2017-08-03 17:37:02 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-08-03 18:37:02 +0200 |
commit | fed1b0a0774e6b0b301fbe11cea70dbd0eac2c19 (patch) | |
tree | 961d159c07bd0be7f5dd66d4d386189ee379d007 /compiler | |
parent | 57edf619fe4d3e826c9b8f151b0f639487ede81b (diff) | |
download | Nim-fed1b0a0774e6b0b301fbe11cea70dbd0eac2c19.tar.gz |
Add mips64 and mips64el CPU platforms (#5866)
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/installer.ini | 2 | ||||
-rw-r--r-- | compiler/platform.nim | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/compiler/installer.ini b/compiler/installer.ini index 8cc89da9f..680a5f9d5 100644 --- a/compiler/installer.ini +++ b/compiler/installer.ini @@ -6,7 +6,7 @@ Name: "Nim" Version: "$version" Platforms: """ windows: i386;amd64 - linux: i386;amd64;powerpc64;arm;sparc;mips;mipsel;powerpc;powerpc64el;arm64 + linux: i386;amd64;powerpc64;arm;sparc;mips;mipsel;mips64;mips64el;powerpc;powerpc64el;arm64 macosx: i386;amd64;powerpc64 solaris: i386;amd64;sparc;sparc64 freebsd: i386;amd64 diff --git a/compiler/platform.nim b/compiler/platform.nim index eb0aca186..e8b80ab9c 100644 --- a/compiler/platform.nim +++ b/compiler/platform.nim @@ -171,7 +171,8 @@ type # alias conditionals to condsyms (end of module). cpuNone, cpuI386, cpuM68k, cpuAlpha, cpuPowerpc, cpuPowerpc64, cpuPowerpc64el, cpuSparc, cpuVm, cpuIa64, cpuAmd64, cpuMips, cpuMipsel, - cpuArm, cpuArm64, cpuJS, cpuNimrodVM, cpuAVR, cpuMSP430, cpuSparc64 + cpuArm, cpuArm64, cpuJS, cpuNimrodVM, cpuAVR, cpuMSP430, cpuSparc64, + cpuMips64, cpuMips64el type TEndian* = enum @@ -200,7 +201,9 @@ const (name: "nimrodvm", intSize: 32, endian: bigEndian, floatSize: 64, bit: 32), (name: "avr", intSize: 16, endian: littleEndian, floatSize: 32, bit: 16), (name: "msp430", intSize: 16, endian: littleEndian, floatSize: 32, bit: 16), - (name: "sparc64", intSize: 64, endian: bigEndian, floatSize: 64, bit: 64)] + (name: "sparc64", intSize: 64, endian: bigEndian, floatSize: 64, bit: 64), + (name: "mips64", intSize: 64, endian: bigEndian, floatSize: 64, bit: 64), + (name: "mips64el", intSize: 64, endian: littleEndian, floatSize: 64, bit: 64)] var targetCPU*, hostCPU*: TSystemCPU |