attempt to make nimble work again

This commit is contained in:
Andreas Rumpf
2017-02-02 11:01:26 +01:00
parent 56aa1ac5bc
commit a86966eefd

View File

@@ -50,7 +50,10 @@ proc newModuleGraph*(config: ConfigRef = nil): ModuleGraph =
result.modules = @[]
result.importStack = @[]
result.inclToMod = initTable[int32, int32]()
result.config = config
if config.isNil:
result.config = newConfigRef()
else:
result.config = config
proc resetAllModules*(g: ModuleGraph) =
initStrTable(packageSyms)