diff options
author | Clyybber <darkmine956@gmail.com> | 2020-05-01 20:25:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-01 20:25:18 +0200 |
commit | 1f1e4de3bc45382ef6674706ef5292bd3c8215a1 (patch) | |
tree | e6f6c7bd676e4081a97d27cb8449573f5d552de6 /compiler/depends.nim | |
parent | 9c33bcac5c73f8188e1c017ba8b2a14db5d5a4fe (diff) | |
download | Nim-1f1e4de3bc45382ef6674706ef5292bd3c8215a1.tar.gz |
Make ./koch temp --gc:arc work (#14186)
Diffstat (limited to 'compiler/depends.nim')
-rw-r--r-- | compiler/depends.nim | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/depends.nim b/compiler/depends.nim index 3d252c2a2..cc385da4b 100644 --- a/compiler/depends.nim +++ b/compiler/depends.nim @@ -51,7 +51,10 @@ proc generateDot*(graph: ModuleGraph; project: AbsoluteFile) = rope(project.splitFile.name), b.dotGraph], changeFileExt(project, "dot")) -proc myOpen(graph: ModuleGraph; module: PSym): PPassContext = +when not defined(nimHasSinkInference): + {.pragma: nosinks.} + +proc myOpen(graph: ModuleGraph; module: PSym): PPassContext {.nosinks.} = var g: PGen new(g) g.module = module |