diff options
author | Dominik Picheta <dominikpicheta@googlemail.com> | 2019-03-03 22:59:57 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-03 22:59:57 +0000 |
commit | 2647653589bfb81c0c12a00aed79012201196317 (patch) | |
tree | f4365624c1aedb92d9b0f7502fa16db03c73ac24 /compiler/platform.nim | |
parent | 792dfac521ce871019676fa17aed1cf8596d8127 (diff) | |
parent | 7edc8bfe14b106fd577c51703c2eefd22c49d738 (diff) | |
download | Nim-2647653589bfb81c0c12a00aed79012201196317.tar.gz |
Merge pull request #10776 from arnetheduck/wasm32-platform
add wasm32 platform
Diffstat (limited to 'compiler/platform.nim')
-rw-r--r-- | compiler/platform.nim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/platform.nim b/compiler/platform.nim index ef1d00e08..e1003a385 100644 --- a/compiler/platform.nim +++ b/compiler/platform.nim @@ -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 |