From 8885fe31d98960f58a0528c1866afa8231d8d8fe Mon Sep 17 00:00:00 2001 From: Andy Davidoff Date: Wed, 2 Jun 2021 11:19:37 -0400 Subject: [PATCH] reuse cached compilation assets under threads --- balls/runner.nim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/balls/runner.nim b/balls/runner.nim index 380beae..f587c25 100644 --- a/balls/runner.nim +++ b/balls/runner.nim @@ -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"