mode = ScriptMode.Verbose version = "0.1.0" author = "Status Research & Development GmbH" description = "Nim implementation of the Status protocol" license = "MIT" skipDirs = @["test"] requires "nim >= 1.2.0", "chroma", "chronicles", "chronos", "confutils", "eth", "nimPNG", "nimage", "nimcrypto", "secp256k1", "stew", "waku" import strutils const debug_opts = " --debugger:native" & " --define:chronicles_line_numbers" & " --define:debug" & " --linetrace:on" & " --stacktrace:on" const release_opts = " --define:danger" & " --define:strip" & " --hints:off" & " --opt:size" & " --passC:-flto" & " --passL:-flto" proc buildAndRun(name: string, srcDir = "test/", outDir = "test/build/", params = "", cmdParams = "", lang = "c") = mkDir outDir # allow something like "nim test --verbosity:0 --hints:off beacon_chain.nims" var extra_params = params for i in 2..