Skip to content

Commit

Permalink
reuse cached compilation assets under threads
Browse files Browse the repository at this point in the history
  • Loading branch information
disruptek committed Jun 2, 2021
1 parent 04bdee4 commit 8885fe3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion balls/runner.nim
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,9 @@ if (NimMajor, NimMinor) >= (1, 6):
defaults.add "--incremental:on"
elif ci:
# otherwise, force rebuild only on CI
defaults.add "--forceBuild:on"
if not compileOption"threads":
# and only outside threads
defaults.add "--forceBuild:on"
when (NimMajor, NimMinor) >= (1, 5):
# force incremental off so as not to get confused by a config file
defaults.add "--incremental:off"
Expand Down

0 comments on commit 8885fe3

Please sign in to comment.