re-enable rodfiles tests; fixes #91

This commit is contained in:
Zahary Karadjov 2012-04-11 01:14:56 +03:00
commit 238202ccbc
7 changed files with 25 additions and 6 deletions

View file

@ -53,7 +53,8 @@ proc genSingleVar(p: BProc, a: PNode) =
var targetProc = p
var immediateAsgn = a.sons[2].kind != nkEmpty
if sfGlobal in v.flags:
targetProc = p.module.preInitProc
if v.owner.kind != skModule:
targetProc = p.module.preInitProc
assignGlobalVar(targetProc, v)
genObjectInit(targetProc, cpsInit, v.typ, v.loc, true)
else: