Skip to content

Commit

Permalink
3.7.2: fewer warnings on 1.7+
Browse files Browse the repository at this point in the history
  • Loading branch information
disruptek committed Oct 19, 2022
1 parent b69c6d3 commit b44a94b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion balls.nimble
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = "3.7.1"
version = "3.7.2"
author = "disruptek"
description = "a unittest framework with balls 🔴🟡🟢"
license = "MIT"
Expand Down
5 changes: 4 additions & 1 deletion balls/runner.nim
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,10 @@ proc run*(p: Profile; withHints = false): string =
if p.gc == vm:
"nim $1 $3"
else:
"nim $1 --gc:$2 $3"
when (NimMajor, NimMinor) >= (1, 7):
"nim $1 --mm:$2 $3"
else:
"nim $1 --gc:$2 $3"

result = pattern % [$p.cp, $p.gc, join(p.options, " ")]

Expand Down

0 comments on commit b44a94b

Please sign in to comment.