fixes DLL generation

This commit is contained in:
Araq 2014-04-21 03:44:48 +02:00
commit 5e839d50b4
7 changed files with 56 additions and 49 deletions

View file

@ -730,7 +730,7 @@ proc retIsNotVoid(s: PSym): bool =
result = (s.typ.sons[0] != nil) and not isInvalidReturnType(s.typ.sons[0])
proc initFrame(p: BProc, procname, filename: PRope): PRope =
discard cgsym(p.module, "pushFrame")
discard cgsym(p.module, "nimFrame")
if p.maxFrameLen > 0:
discard cgsym(p.module, "TVarSlot")
result = rfmt(nil, "\tnimfrs($1, $2, $3, $4)$N",

View file

@ -49,6 +49,7 @@ proc initDefines*() =
defineSymbol("nimcomputedgoto")
defineSymbol("nimunion")
defineSymbol("nimnewshared")
defineSymbol("nimrequiresnimframe")
# add platform specific symbols:
case targetCPU