Skip to content

Commit

Permalink
completes #12799, fixes #12216 (#12870)
Browse files Browse the repository at this point in the history
  • Loading branch information
Araq authored Dec 10, 2019
1 parent 13d232e commit 61d89aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/cgen.nim
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,7 @@ proc assignGlobalVar(p: BProc, n: PNode; value: Rope) =
decl.addf "NIM_ALIGN($1) ", [rope(s.alignment)]
if p.hcrOn: decl.add("static ")
elif sfImportc in s.flags: decl.add("extern ")
if s.kind == skLet and value != nil: decl.add("NIM_CONST ")
decl.add(td)
if p.hcrOn: decl.add("*")
if sfRegister in s.flags: decl.add(" register")
Expand Down

0 comments on commit 61d89aa

Please sign in to comment.