nimsuggest uses multithreading and full project recompiles
This commit is contained in:
parent
443a46b40d
commit
9f142e199d
6 changed files with 223 additions and 29 deletions
|
|
@ -40,9 +40,13 @@ type
|
|||
# module dependencies.
|
||||
backend*: RootRef # minor hack so that a backend can extend this easily
|
||||
config*: ConfigRef
|
||||
doStopCompile*: proc(): bool {.closure.}
|
||||
|
||||
{.this: g.}
|
||||
|
||||
proc stopCompile*(g: ModuleGraph): bool {.inline.} =
|
||||
result = doStopCompile != nil and doStopCompile()
|
||||
|
||||
proc newModuleGraph*(config: ConfigRef = nil): ModuleGraph =
|
||||
result = ModuleGraph()
|
||||
initStrTable(result.packageSyms)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue