diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-05-30 23:50:34 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-05-30 23:50:34 +0200 |
commit | 61fb83ecbb4c691c03d500f6c71499e59a67cef2 (patch) | |
tree | 5976368415b899b6a1a1b4640657c25bafcd22b3 /compiler/main.nim | |
parent | a36c779f398d786082dc8d53412f8a9aaebf637b (diff) | |
download | Nim-61fb83ecbb4c691c03d500f6c71499e59a67cef2.tar.gz |
baby steps for incremental compilation
Diffstat (limited to 'compiler/main.nim')
-rw-r--r-- | compiler/main.nim | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/compiler/main.nim b/compiler/main.nim index 0929974bd..97e96dcff 100644 --- a/compiler/main.nim +++ b/compiler/main.nim @@ -14,7 +14,7 @@ when not defined(nimcore): import llstream, strutils, ast, astalgo, lexer, syntaxes, renderer, options, msgs, - os, condsyms, rodread, rodwrite, times, + os, condsyms, times, wordrecg, sem, semdata, idents, passes, docgen, extccomp, cgen, jsgen, json, nversion, platform, nimconf, importer, passaux, depends, vm, vmdef, types, idgen, @@ -23,10 +23,6 @@ import from magicsys import resetSysTypes -proc rodPass(g: ModuleGraph) = - if g.config.symbolFiles in {enabledSf, writeOnlySf}: - registerPass(g, rodwritePass) - proc codegenPass(g: ModuleGraph) = registerPass g, cgenPass @@ -47,7 +43,6 @@ proc writeDepsFile(g: ModuleGraph; project: string) = proc commandGenDepend(graph: ModuleGraph; cache: IdentCache) = semanticPasses(graph) registerPass(graph, gendependPass) - #registerPass(cleanupPass) compileProject(graph, cache) let project = graph.config.projectFull writeDepsFile(graph, project) @@ -59,7 +54,6 @@ proc commandCheck(graph: ModuleGraph; cache: IdentCache) = graph.config.errorMax = high(int) # do not stop after first error defineSymbol(graph.config.symbols, "nimcheck") semanticPasses(graph) # use an empty backend for semantic checking only - rodPass(graph) compileProject(graph, cache) proc commandDoc2(graph: ModuleGraph; cache: IdentCache; json: bool) = @@ -67,7 +61,6 @@ proc commandDoc2(graph: ModuleGraph; cache: IdentCache; json: bool) = semanticPasses(graph) if json: registerPass(graph, docgen2JsonPass) else: registerPass(graph, docgen2Pass) - #registerPass(cleanupPass()) compileProject(graph, cache) finishDoc2Pass(graph.config.projectName) @@ -76,8 +69,6 @@ proc commandCompileToC(graph: ModuleGraph; cache: IdentCache) = extccomp.initVars(conf) semanticPasses(graph) registerPass(graph, cgenPass) - rodPass(graph) - #registerPass(cleanupPass()) compileProject(graph, cache) cgenWriteModules(graph.backend, conf) |