summary refs log tree commit diff stats
path: root/compiler/depends.nim
diff options
context:
space:
mode:
authorClyybber <darkmine956@gmail.com>2020-05-01 20:25:18 +0200
committerGitHub <noreply@github.com>2020-05-01 20:25:18 +0200
commit1f1e4de3bc45382ef6674706ef5292bd3c8215a1 (patch)
treee6f6c7bd676e4081a97d27cb8449573f5d552de6 /compiler/depends.nim
parent9c33bcac5c73f8188e1c017ba8b2a14db5d5a4fe (diff)
downloadNim-1f1e4de3bc45382ef6674706ef5292bd3c8215a1.tar.gz
Make ./koch temp --gc:arc work (#14186)
Diffstat (limited to 'compiler/depends.nim')
-rw-r--r--compiler/depends.nim5
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