Merge pull request #10776 from arnetheduck/wasm32-platform
add wasm32 platform
This commit is contained in:
commit
2647653589
2 changed files with 5 additions and 2 deletions
|
|
@ -181,7 +181,7 @@ type
|
||||||
cpuNone, cpuI386, cpuM68k, cpuAlpha, cpuPowerpc, cpuPowerpc64,
|
cpuNone, cpuI386, cpuM68k, cpuAlpha, cpuPowerpc, cpuPowerpc64,
|
||||||
cpuPowerpc64el, cpuSparc, cpuVm, cpuIa64, cpuAmd64, cpuMips, cpuMipsel,
|
cpuPowerpc64el, cpuSparc, cpuVm, cpuIa64, cpuAmd64, cpuMips, cpuMipsel,
|
||||||
cpuArm, cpuArm64, cpuJS, cpuNimVM, cpuAVR, cpuMSP430, cpuSparc64,
|
cpuArm, cpuArm64, cpuJS, cpuNimVM, cpuAVR, cpuMSP430, cpuSparc64,
|
||||||
cpuMips64, cpuMips64el, cpuRiscV64
|
cpuMips64, cpuMips64el, cpuRiscV64, cpuWasm32
|
||||||
|
|
||||||
type
|
type
|
||||||
TEndian* = enum
|
TEndian* = enum
|
||||||
|
|
@ -213,7 +213,8 @@ const
|
||||||
(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: "mips64", intSize: 64, endian: bigEndian, floatSize: 64, bit: 64),
|
||||||
(name: "mips64el", intSize: 64, endian: littleEndian, 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
|
type
|
||||||
Target* = object
|
Target* = object
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,7 @@ type
|
||||||
avr, ## AVR based processor
|
avr, ## AVR based processor
|
||||||
msp430, ## TI MSP430 microcontroller
|
msp430, ## TI MSP430 microcontroller
|
||||||
riscv64 ## RISC-V 64-bit processor
|
riscv64 ## RISC-V 64-bit processor
|
||||||
|
wasm32 ## WASM, 32-bit
|
||||||
|
|
||||||
OsPlatform* {.pure.} = enum ## the OS this program will run on.
|
OsPlatform* {.pure.} = enum ## the OS this program will run on.
|
||||||
none, dos, windows, os2, linux, morphos, skyos, solaris,
|
none, dos, windows, os2, linux, morphos, skyos, solaris,
|
||||||
|
|
@ -87,5 +88,6 @@ const
|
||||||
elif defined(avr): CpuPlatform.avr
|
elif defined(avr): CpuPlatform.avr
|
||||||
elif defined(msp430): CpuPlatform.msp430
|
elif defined(msp430): CpuPlatform.msp430
|
||||||
elif defined(riscv64): CpuPlatform.riscv64
|
elif defined(riscv64): CpuPlatform.riscv64
|
||||||
|
elif defined(wasm32): CpuPlatform.wasm32
|
||||||
else: CpuPlatform.none
|
else: CpuPlatform.none
|
||||||
## the CPU this program will run on.
|
## the CPU this program will run on.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue