make nimfix compile with newer compiler API
This commit is contained in:
parent
bafc94a49a
commit
f484d1b20b
1 changed files with 3 additions and 2 deletions
|
|
@ -13,7 +13,8 @@ import strutils, os, parseopt
|
|||
import compiler/options, compiler/commands, compiler/modules, compiler/sem,
|
||||
compiler/passes, compiler/passaux, compiler/nimfix/pretty,
|
||||
compiler/msgs, compiler/nimconf,
|
||||
compiler/extccomp, compiler/condsyms, compiler/lists
|
||||
compiler/extccomp, compiler/condsyms, compiler/lists,
|
||||
compiler/modulegraphs, compiler/idents
|
||||
|
||||
const Usage = """
|
||||
Nimfix - Tool to patch Nim code
|
||||
|
|
@ -43,7 +44,7 @@ proc mainCommand =
|
|||
# current path is always looked first for modules
|
||||
prependStr(searchPaths, gProjectPath)
|
||||
|
||||
compileProject()
|
||||
compileProject(newModuleGraph(), newIdentCache())
|
||||
pretty.overwriteFiles()
|
||||
|
||||
proc processCmdLine*(pass: TCmdLinePass, cmd: string) =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue