From 27741d6a5c9ec87a6938b2928ae54b22bc93d9be 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. --- compiler/commands.nim | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/commands.nim b/compiler/commands.nim index 340180378c..e2e1a4558a 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":