Skip to content

Commit

Permalink
0.8.0: support --compileOnly
Browse files Browse the repository at this point in the history
  • Loading branch information
disruptek committed Jan 2, 2021
1 parent 8b2fe02 commit c8cbbb7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion testes.nim
Original file line number Diff line number Diff line change
Expand Up @@ -799,12 +799,14 @@ when isMainModule:

proc perform(fn: string) =
## build and run a test according to matrix; may quit with exit code
let pattern = "nim $1 --run --gc:$2 $3"
let pattern = "nim $1 --gc:$2 $3"
for opt, options in opt.pairs:
var options = defaults & options
# add in any command-line arguments
for index in 1 .. paramCount():
options.add paramStr(index)
if "--compileOnly" notin options:
options.add "--run"
# turn off sinkInference on 1.2 builds because it breaks VM code
if (NimMajor, NimMinor) == (1, 2):
options.add "--sinkInference:off"
Expand Down
2 changes: 1 addition & 1 deletion testes.nimble
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = "0.7.13"
version = "0.8.0"
author = "disruptek"
description = "a cure for salty testes"
license = "MIT"
Expand Down

0 comments on commit c8cbbb7

Please sign in to comment.