not generate initStackBottomWith in arc/orc [backport] (#19875)

not generate initStackBottomWith in arc/orc
This commit is contained in:
flywind
2022-06-10 21:24:28 +08:00
committed by GitHub
parent 1972005439
commit eefca1b81f

View File

@@ -2094,7 +2094,7 @@ proc finalCodegenActions*(graph: ModuleGraph; m: BModule; n: PNode) =
discard cgsym(m, "rawWrite")
# raise dependencies on behalf of genMainProc
if m.config.target.targetOS != osStandalone and m.config.selectedGC != gcNone:
if m.config.target.targetOS != osStandalone and m.config.selectedGC notin {gcNone, gcArc, gcOrc}:
discard cgsym(m, "initStackBottomWith")
if emulatedThreadVars(m.config) and m.config.target.targetOS != osStandalone:
discard cgsym(m, "initThreadVarsEmulation")