Make ./koch temp --gc:arc work (#14186)
This commit is contained in:
parent
9c33bcac5c
commit
1f1e4de3bc
8 changed files with 26 additions and 11 deletions
|
|
@ -1824,7 +1824,10 @@ template injectG() {.dirty.} =
|
|||
graph.backend = newModuleList(graph)
|
||||
let g = BModuleList(graph.backend)
|
||||
|
||||
proc myOpen(graph: ModuleGraph; module: PSym): PPassContext =
|
||||
when not defined(nimHasSinkInference):
|
||||
{.pragma: nosinks.}
|
||||
|
||||
proc myOpen(graph: ModuleGraph; module: PSym): PPassContext {.nosinks.} =
|
||||
injectG()
|
||||
result = newModule(g, module, graph.config)
|
||||
if optGenIndex in graph.config.globalOptions and g.generatedHeader == nil:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue