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.
  • Loading branch information
stefantalpalaru committed May 18, 2020
1 parent ac65986 commit 27741d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/commands.nim
Expand Up @@ -493,6 +493,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 27741d6

Please sign in to comment.