Properly initialize the stack with emulated thread variables.
This commit is contained in:
parent
ee9c70e034
commit
ead00d2328
1 changed files with 1 additions and 2 deletions
|
|
@ -1061,8 +1061,7 @@ proc genMainProc(m: BModule) =
|
||||||
gBreakpoints.app(m.genFilenames)
|
gBreakpoints.app(m.genFilenames)
|
||||||
|
|
||||||
let initStackBottomCall =
|
let initStackBottomCall =
|
||||||
if emulatedThreadVars() or
|
if platform.targetOS == osStandalone: "".toRope
|
||||||
platform.targetOS == osStandalone: "".toRope
|
|
||||||
else: ropecg(m, "\t#initStackBottomWith((void *)&inner);$N")
|
else: ropecg(m, "\t#initStackBottomWith((void *)&inner);$N")
|
||||||
inc(m.labels)
|
inc(m.labels)
|
||||||
appcg(m, m.s[cfsProcs], PreMainBody, [
|
appcg(m, m.s[cfsProcs], PreMainBody, [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue