compiler refactoring, pass config around explicitly

This commit is contained in:
Andreas Rumpf
2018-05-05 18:47:29 +02:00
parent eef12654bd
commit b7116a28ee
17 changed files with 93 additions and 1879 deletions

View File

@@ -28,7 +28,7 @@ proc listDirs(a: VmArgs, filter: set[PathComponent]) =
proc setupVM*(module: PSym; cache: IdentCache; scriptName: string;
config: ConfigRef): PEvalContext =
# For Nimble we need to export 'setupVM'.
result = newCtx(module, cache)
result = newCtx(module, cache, config)
result.mode = emRepl
registerAdditionalOps(result)