diff options
author | flywind <43030857+xflywind@users.noreply.github.com> | 2022-06-10 21:24:28 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-10 21:24:28 +0800 |
commit | eefca1b81f334a5ccdb7d180de5b6a9969f12793 (patch) | |
tree | 9d777f24f1c1e4841d2e6f70ca624c5e4d9b8a81 | |
parent | 1972005439306a12088400ef338c40c3d3c2ce28 (diff) | |
download | Nim-eefca1b81f334a5ccdb7d180de5b6a9969f12793.tar.gz |
not generate initStackBottomWith in arc/orc [backport] (#19875)
not generate initStackBottomWith in arc/orc
-rw-r--r-- | compiler/cgen.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/cgen.nim b/compiler/cgen.nim index 8d24f30c5..862f31107 100644 --- a/compiler/cgen.nim +++ b/compiler/cgen.nim @@ -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") |