nim-eth-contracts/examples/test.nims

21 lines
504 B
Plaintext
Raw Normal View History

2018-07-05 08:39:04 +00:00
--os:standalone
--cpu:i386
--cc:clang
--gc:none
--d:release
--nomain
--opt:speed
let llBin = getEnv("WASM_LLVM_BIN")
if llBin.len == 0:
raise newException(Exception, "WASM_LLVM_BIN env var is not set")
let llTarget = "wasm32-unknown-unknown-wasm"
switch("passC", "--target=" & llTarget)
switch("passL", "--target=" & llTarget)
switch("clang.exe", llBin & "/clang")
switch("clang.linkerexe", llBin & "/clang")
switch("clang.options.linker", "-nostdlib -Wl,--no-entry,--allow-undefined,--strip-all")