fix #14364 (#14372) [backport:1.2]

Turn on the TLS emulation when using Boehm, since it doesn't scan the
real TLS.
This commit is contained in:
Ștefan Talpalaru 2020-05-18 23:44:04 +02:00 • committed by GitHub
commit 27741d6a5c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -493,6 +493,7 @@ proc processSwitch*(switch, arg: string, pass: TCmdLinePass, info: TLineInfo;
of "boehm": of "boehm":
conf.selectedGC = gcBoehm conf.selectedGC = gcBoehm
defineSymbol(conf.symbols, "boehmgc") defineSymbol(conf.symbols, "boehmgc")
incl conf.globalOptions, optTlsEmulation # Boehm GC doesn't scan the real TLS
of "refc": of "refc":
conf.selectedGC = gcRefc conf.selectedGC = gcRefc
of "v2": of "v2":