diff options
author | Araq <rumpf_a@web.de> | 2016-12-20 15:59:53 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2016-12-20 15:59:53 +0100 |
commit | f484d1b20b2ce5be13a2e7019e71d8ff6868f43a (patch) | |
tree | eccd042213e986477a61c72108f44d9047998f6d | |
parent | bafc94a49ab2a55066c9b9e8927ff049aa3dafa8 (diff) | |
download | Nim-f484d1b20b2ce5be13a2e7019e71d8ff6868f43a.tar.gz |
make nimfix compile with newer compiler API
-rw-r--r-- | compiler/nimfix/nimfix.nim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/nimfix/nimfix.nim b/compiler/nimfix/nimfix.nim index b4007cdaf..d1cf9615d 100644 --- a/compiler/nimfix/nimfix.nim +++ b/compiler/nimfix/nimfix.nim @@ -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) = |