diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2016-11-28 10:14:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-28 10:14:53 +0100 |
commit | c001d95606c9c346b18d1e773cb8e2d09041ec55 (patch) | |
tree | 5fbf1926a27826370996c25dd2a1ca3e23081adc /compiler/nimeval.nim | |
parent | 9b4619235fb7e5a52195dc601f99142a46605297 (diff) | |
parent | b67aa23de9286c7bce3500f43f5f2991b947e24b (diff) | |
download | Nim-c001d95606c9c346b18d1e773cb8e2d09041ec55.tar.gz |
Merge pull request #5063 from deech/nimeval-fix
Fix compilation error in nimeval.
Diffstat (limited to 'compiler/nimeval.nim')
-rw-r--r-- | compiler/nimeval.nim | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/compiler/nimeval.nim b/compiler/nimeval.nim index 2bddb76e7..2872bdade 100644 --- a/compiler/nimeval.nim +++ b/compiler/nimeval.nim @@ -8,10 +8,9 @@ # ## exposes the Nim VM to clients. - import ast, modules, passes, passaux, condsyms, - options, nimconf, lists, sem, semdata, llstream, vm + options, nimconf, lists, sem, semdata, llstream, vm, modulegraphs, idents proc execute*(program: string) = passes.gIncludeFile = includeModule @@ -27,7 +26,9 @@ proc execute*(program: string) = registerPass(evalPass) appendStr(searchPaths, options.libpath) - compileSystemModule() - var m = makeStdinModule() + var graph = newModuleGraph() + var cache = newIdentCache() + var m = makeStdinModule(graph) incl(m.flags, sfMainModule) - processModule(m, llStreamOpen(program), nil) + compileSystemModule(graph,cache) + processModule(graph,m, llStreamOpen(program), nil, cache) |