added gFuzzyGraphChecking for nimsuggest timeout problems
This commit is contained in:
parent
ec0de31751
commit
c3315bc763
1 changed files with 2 additions and 2 deletions
|
|
@ -29,6 +29,7 @@ var
|
||||||
gMemCacheData*: seq[TModuleInMemory] = @[]
|
gMemCacheData*: seq[TModuleInMemory] = @[]
|
||||||
## XXX: we should implement recycling of file IDs
|
## XXX: we should implement recycling of file IDs
|
||||||
## if the user keeps renaming modules, the file IDs will keep growing
|
## if the user keeps renaming modules, the file IDs will keep growing
|
||||||
|
gFuzzyGraphChecking*: bool # nimsuggest uses this. XXX figure out why.
|
||||||
|
|
||||||
proc getModule*(fileIdx: int32): PSym =
|
proc getModule*(fileIdx: int32): PSym =
|
||||||
if fileIdx >= 0 and fileIdx < gCompiledModules.len:
|
if fileIdx >= 0 and fileIdx < gCompiledModules.len:
|
||||||
|
|
@ -105,14 +106,13 @@ proc checkDepMem(fileIdx: int32): TNeedRecompile =
|
||||||
resetModule(fileIdx)
|
resetModule(fileIdx)
|
||||||
return Yes
|
return Yes
|
||||||
|
|
||||||
when false:
|
if gFuzzyGraphChecking:
|
||||||
if gMemCacheData[fileIdx].needsRecompile != Maybe:
|
if gMemCacheData[fileIdx].needsRecompile != Maybe:
|
||||||
return gMemCacheData[fileIdx].needsRecompile
|
return gMemCacheData[fileIdx].needsRecompile
|
||||||
else:
|
else:
|
||||||
# cycle detection: We claim that a cycle does no harm.
|
# cycle detection: We claim that a cycle does no harm.
|
||||||
if gMemCacheData[fileIdx].needsRecompile == Probing:
|
if gMemCacheData[fileIdx].needsRecompile == Probing:
|
||||||
return No
|
return No
|
||||||
#return gMemCacheData[fileIdx].needsRecompile
|
|
||||||
|
|
||||||
if optForceFullMake in gGlobalOptions or hashChanged(fileIdx):
|
if optForceFullMake in gGlobalOptions or hashChanged(fileIdx):
|
||||||
markDirty()
|
markDirty()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue