Skip to content

Commit

Permalink
fix #14364 (#14372) [backport:1.2]
Browse files Browse the repository at this point in the history
Turn on the TLS emulation when using Boehm, since it doesn't scan the
real TLS.

(cherry picked from commit 27741d6)
  • Loading branch information
stefantalpalaru authored and narimiran committed May 19, 2020
1 parent 87992a3 commit c0b749d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/commands.nim
Expand Up @@ -478,6 +478,7 @@ proc processSwitch*(switch, arg: string, pass: TCmdLinePass, info: TLineInfo;
of "boehm":
conf.selectedGC = gcBoehm
defineSymbol(conf.symbols, "boehmgc")
incl conf.globalOptions, optTlsEmulation # Boehm GC doesn't scan the real TLS
of "refc":
conf.selectedGC = gcRefc
of "v2":
Expand Down

0 comments on commit c0b749d

Please sign in to comment.