symbol files: implemented accurate module dependency tracking

This commit is contained in:
Araq 2018-02-21 00:48:23 +01:00
commit 046ed4ed22
7 changed files with 105 additions and 22 deletions

View file

@ -16,7 +16,9 @@ when not defined(nimSymbolfiles):
template storeNode*(module: PSym; n: PNode) = discard
template loadNode*(module: PSym; index: var int): PNode = PNode(nil)
template getModuleId*(fullpath: string): int = getID()
template getModuleId*(fileIdx: int32; fullpath: string): int = getID()
template addModuleDep*(module, fileIdx: int32; isIncludeFile: bool) = discard
else:
include rodimpl