From 3d88d06b32d1337fda45d419e9cd2ad845b74d5d Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Thu, 11 Jul 2019 21:36:23 +0200 Subject: better run [feature] (#11709) * track the checksums of all involved Nim files for smarter 'nim c -r' recompiles * don't recompile unless necessary for 'nim c -r' [feature] * [feature] koch boot uses a two step process in order to free the RAM before the GCC/Clang invocations * fixes a serious regression --- compiler/main.nim | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'compiler/main.nim') diff --git a/compiler/main.nim b/compiler/main.nim index acd7c7485..26c1999e6 100644 --- a/compiler/main.nim +++ b/compiler/main.nim @@ -87,6 +87,15 @@ proc commandCompileToC(graph: ModuleGraph) = semanticPasses(graph) registerPass(graph, cgenPass) + if {optRun, optForceFullMake} * conf.globalOptions == {optRun}: + let proj = changeFileExt(conf.projectFull, "") + if not changeDetectedViaJsonBuildInstructions(conf, proj): + # nothing changed + # Little hack here in order to not lose our precious + # hintSuccessX message: + conf.notes.incl hintSuccessX + return + compileProject(graph) if graph.config.errorCounter > 0: return # issue #9933 -- cgit 1.4.1-2-gfad0