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
commit eefca1b81f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2094,7 +2094,7 @@ proc finalCodegenActions*(graph: ModuleGraph; m: BModule; n: PNode) =
discard cgsym(m, "rawWrite") discard cgsym(m, "rawWrite")
# raise dependencies on behalf of genMainProc # 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") discard cgsym(m, "initStackBottomWith")
if emulatedThreadVars(m.config) and m.config.target.targetOS != osStandalone: if emulatedThreadVars(m.config) and m.config.target.targetOS != osStandalone:
discard cgsym(m, "initThreadVarsEmulation") discard cgsym(m, "initThreadVarsEmulation")