From c0b749da38e8cfd005f0199f275fca570950f326 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C8=98tefan=20Talpalaru?= Date: Mon, 18 May 2020 23:44:04 +0200 Subject: [PATCH] fix #14364 (#14372) [backport:1.2] Turn on the TLS emulation when using Boehm, since it doesn't scan the real TLS. (cherry picked from commit 27741d6a5c9ec87a6938b2928ae54b22bc93d9be) --- compiler/commands.nim | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/commands.nim b/compiler/commands.nim index babdd5871a..36dffca517 100644 --- a/compiler/commands.nim +++ b/compiler/commands.nim @@ -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":