From ead00d2328507b3ee70f3d49a74d94d946729e14 Mon Sep 17 00:00:00 2001 From: Reimer Behrends Date: Thu, 6 Nov 2014 02:09:51 +0100 Subject: [PATCH] Properly initialize the stack with emulated thread variables. --- compiler/cgen.nim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/compiler/cgen.nim b/compiler/cgen.nim index afeac8c88..8e20ba654 100644 --- a/compiler/cgen.nim +++ b/compiler/cgen.nim @@ -1061,8 +1061,7 @@ proc genMainProc(m: BModule) = gBreakpoints.app(m.genFilenames) let initStackBottomCall = - if emulatedThreadVars() or - platform.targetOS == osStandalone: "".toRope + if platform.targetOS == osStandalone: "".toRope else: ropecg(m, "\t#initStackBottomWith((void *)&inner);$N") inc(m.labels) appcg(m, m.s[cfsProcs], PreMainBody, [