diff options
author | Araq <rumpf_a@web.de> | 2019-07-12 10:48:29 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2019-07-12 10:48:29 +0200 |
commit | 6d125da93f54a681561ffd428ac0b6aeb132aefd (patch) | |
tree | 3f77c52281fa76f8f0b8d3493b03315188644d71 /compiler | |
parent | 13253f41544404c614e70d7ad312b54d0e424e55 (diff) | |
download | Nim-6d125da93f54a681561ffd428ac0b6aeb132aefd.tar.gz |
koch/nim: completion of the 'better run' feature
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/extccomp.nim | 2 | ||||
-rw-r--r-- | compiler/main.nim | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/extccomp.nim b/compiler/extccomp.nim index aeb427a05..76b31cc4d 100644 --- a/compiler/extccomp.nim +++ b/compiler/extccomp.nim @@ -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" diff --git a/compiler/main.nim b/compiler/main.nim index 26c1999e6..c16afafbe 100644 --- a/compiler/main.nim +++ b/compiler/main.nim @@ -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 |