Skip to content

Commit 3ae434a

Browse files
committed
symbol files: do not regenerate method dispatchers for now
1 parent 464d037 commit 3ae434a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compiler/cgen.nim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1443,6 +1443,10 @@ proc myClose(graph: ModuleGraph; b: PPassContext, n: PNode): PNode =
14431443
result = n
14441444
if b == nil or passes.skipCodegen(n): return
14451445
var m = BModule(b)
1446+
# if the module is cached, we don't regenerate the main proc
1447+
# nor the dispatchers? But if the dispatchers changed?
1448+
# XXX emit the dispatchers into its own .c file?
1449+
if b.rd != nil: return
14461450
if n != nil:
14471451
m.initProc.options = initProcOptions(m)
14481452
genStmts(m.initProc, n)

0 commit comments

Comments
 (0)