bugfix: fix linking when symbol files are used
This commit is contained in:
parent
a3073cf078
commit
95b28700cc
5 changed files with 12 additions and 13 deletions
|
|
@ -1254,7 +1254,7 @@ proc updateCachedModule(m: BModule) =
|
|||
let cfile = getCFile(m)
|
||||
let cfilenoext = changeFileExt(cfile, "")
|
||||
|
||||
if mergeRequired(m):
|
||||
if mergeRequired(m) and sfMainModule notin m.module.flags:
|
||||
mergeFiles(cfile, m)
|
||||
genInitCode(m)
|
||||
finishTypeDescriptions(m)
|
||||
|
|
@ -1264,8 +1264,7 @@ proc updateCachedModule(m: BModule) =
|
|||
|
||||
addFileToLink(cfilenoext)
|
||||
|
||||
proc cgenCaasUpdate* =
|
||||
# XXX(zah): clean-up the fromCache mess
|
||||
proc updateCachedModules* =
|
||||
for m in cgenModules():
|
||||
if m.fromCache: m.updateCachedModule
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue