Fix compilation error in nimeval.
This commit is contained in:
parent
9b4619235f
commit
b67aa23de9
1 changed files with 6 additions and 5 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue