summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorȘtefan Talpalaru <stefantalpalaru@yahoo.com>2020-05-18 23:44:04 +0200
committerGitHub <noreply@github.com>2020-05-18 23:44:04 +0200
commit27741d6a5c9ec87a6938b2928ae54b22bc93d9be (patch)
tree3ebfe0144590039be70b47b28d516b5cf51b4b51 /compiler
parentac65986aae77e47d4f2ae99acc8048fe3d637921 (diff)
downloadNim-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.nim1
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":