From f484d1b20b2ce5be13a2e7019e71d8ff6868f43a Mon Sep 17 00:00:00 2001 From: Araq Date: Tue, 20 Dec 2016 15:59:53 +0100 Subject: make nimfix compile with newer compiler API --- compiler/nimfix/nimfix.nim | 5 +++-- 1 file 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) = -- cgit 1.4.1-2-gfad0