diff options
author | Ștefan Talpalaru <stefantalpalaru@yahoo.com> | 2020-05-18 23:44:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-18 23:44:04 +0200 |
commit | 27741d6a5c9ec87a6938b2928ae54b22bc93d9be (patch) | |
tree | 3ebfe0144590039be70b47b28d516b5cf51b4b51 /compiler | |
parent | ac65986aae77e47d4f2ae99acc8048fe3d637921 (diff) | |
download | Nim-27741d6a5c9ec87a6938b2928ae54b22bc93d9be.tar.gz |
fix #14364 (#14372) [backport:1.2]
Turn on the TLS emulation when using Boehm, since it doesn't scan the real TLS.
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/commands.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/commands.nim b/compiler/commands.nim index 340180378..e2e1a4558 100644 --- a/compiler/commands.nim +++ b/compiler/commands.nim @@ -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": |