From a86966eefd42b8d09af5a8f014d81ef844b55e4c Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Thu, 2 Feb 2017 11:01:26 +0100 Subject: [PATCH] attempt to make nimble work again --- compiler/modulegraphs.nim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/compiler/modulegraphs.nim b/compiler/modulegraphs.nim index 0ae7076d96..87a35b2900 100644 --- a/compiler/modulegraphs.nim +++ b/compiler/modulegraphs.nim @@ -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)