From a77ee65615e3eaa76c2a0768361aa2d9c083e0b0 Mon Sep 17 00:00:00 2001 From: Yuriy Glukhov Date: Tue, 11 Dec 2018 11:11:27 +0200 Subject: [PATCH] Moved -d:release to nimble file, renamed wrc20.nims to config.nims --- eth_contracts.nimble | 2 +- examples/{wrc20.nims => config.nims} | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) rename examples/{wrc20.nims => config.nims} (97%) diff --git a/eth_contracts.nimble b/eth_contracts.nimble index b107386..8f1cec2 100644 --- a/eth_contracts.nimble +++ b/eth_contracts.nimble @@ -9,7 +9,7 @@ skipDirs = @["examples"] requires "nim >= 0.18.1", "stint" proc buildExample(name: string) = - exec "nim c --out:examples/" & name & ".wasm examples/" & name + exec "nim c -d:release --out:examples/" & name & ".wasm examples/" & name exec "./postprocess.sh examples/" & name & ".wasm" task examples, "Build examples": diff --git a/examples/wrc20.nims b/examples/config.nims similarity index 97% rename from examples/wrc20.nims rename to examples/config.nims index b60d3d9..271f97d 100644 --- a/examples/wrc20.nims +++ b/examples/config.nims @@ -2,7 +2,6 @@ --cpu:i386 --cc:clang --gc:none ---d:release --nomain --opt:speed