parent
f838b1e6c1
commit
7a66616d74
1 changed files with 1 additions and 1 deletions
|
|
@ -1138,7 +1138,7 @@ proc implicitPragmas*(c: PContext, sym: PSym, n: PNode,
|
||||||
internalError(c.config, n.info, "implicitPragmas")
|
internalError(c.config, n.info, "implicitPragmas")
|
||||||
inc i
|
inc i
|
||||||
popInfoContext(c.config)
|
popInfoContext(c.config)
|
||||||
if sym.kind in routineKinds: mergePragmas(sym.ast, o)
|
if sym.kind in routineKinds and sym.ast != nil: mergePragmas(sym.ast, o)
|
||||||
|
|
||||||
if lfExportLib in sym.loc.flags and sfExportc notin sym.flags:
|
if lfExportLib in sym.loc.flags and sfExportc notin sym.flags:
|
||||||
localError(c.config, n.info, ".dynlib requires .exportc")
|
localError(c.config, n.info, ".dynlib requires .exportc")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue