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

@ -1023,7 +1023,7 @@ proc writeJsonBuildInstructions*(conf: ConfigRef) =
lit "],\L\"linkcmd\": "
str getLinkCmd(conf, conf.absOutFile, objfiles)
if optRun in conf.globalOptions:
if optRun in conf.globalOptions or isDefined(conf, "nimBetterRun"):
lit ",\L\"nimfiles\":[\L"
nimfiles(conf, f)
lit "]\L"