add wasm32 platform

This commit is contained in:
Jacek Sieka 2019-03-03 09:03:28 -06:00
commit 7edc8bfe14
2 changed files with 5 additions and 2 deletions

View file

@ -181,7 +181,7 @@ type
cpuNone, cpuI386, cpuM68k, cpuAlpha, cpuPowerpc, cpuPowerpc64,
cpuPowerpc64el, cpuSparc, cpuVm, cpuIa64, cpuAmd64, cpuMips, cpuMipsel,
cpuArm, cpuArm64, cpuJS, cpuNimVM, cpuAVR, cpuMSP430, cpuSparc64,
cpuMips64, cpuMips64el, cpuRiscV64
cpuMips64, cpuMips64el, cpuRiscV64, cpuWasm32
type
TEndian* = enum
@ -213,7 +213,8 @@ const
(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),
(name: "riscv64", intSize: 64, endian: littleEndian, floatSize: 64, bit: 64)]
(name: "riscv64", intSize: 64, endian: littleEndian, floatSize: 64, bit: 64),
(name: "wasm32", intSize: 32, endian: littleEndian, floatSize: 64, bit: 32)]
type
Target* = object