nim-eth-contracts/examples/config.nims

23 lines
525 B
Plaintext
Raw Normal View History

2018-07-05 08:39:04 +00:00
--os:standalone
--cpu:i386
--cc:clang
--gc:none
--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)
2018-07-09 07:32:44 +00:00
switch("passC", "-I./include")
2018-07-05 08:39:04 +00:00
switch("clang.exe", llBin & "/clang")
switch("clang.linkerexe", llBin & "/clang")
switch("clang.options.linker", "-nostdlib -Wl,--no-entry,--allow-undefined,--strip-all")