Skip to content

Commit

Permalink
not generate initStackBottomWith in arc/orc [backport] (#19875)
Browse files Browse the repository at this point in the history
not generate initStackBottomWith in arc/orc
  • Loading branch information
ringabout authored Jun 10, 2022
1 parent 1972005 commit eefca1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/cgen.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit eefca1b

Please sign in to comment.