koch/nim: completion of the 'better run' feature

This commit is contained in:
Araq 2019-07-12 10:48:29 +02:00
commit 6d125da93f
3 changed files with 6 additions and 4 deletions

View file

@ -87,7 +87,7 @@ proc commandCompileToC(graph: ModuleGraph) =
semanticPasses(graph)
registerPass(graph, cgenPass)
if {optRun, optForceFullMake} * conf.globalOptions == {optRun}:
if {optRun, optForceFullMake} * conf.globalOptions == {optRun} or isDefined(conf, "nimBetterRun"):
let proj = changeFileExt(conf.projectFull, "")
if not changeDetectedViaJsonBuildInstructions(conf, proj):
# nothing changed