Fixed threading issues for tcc backend

This commit is contained in:
Anatoly Galiulin 2016-03-04 13:01:17 +06:00
commit 0968771785
3 changed files with 52 additions and 1 deletions

View file

@ -1288,6 +1288,10 @@ const
hasSharedHeap = defined(boehmgc) or defined(gogc) # don't share heaps; every thread has its own
taintMode = compileOption("taintmode")
when hasThreadSupport and defined(tcc) and not compileOption("tlsEmulation"):
# tcc doesn't support TLS
{.error: "``--tlsEmulation:on`` must be used when using threads with tcc backend".}
when defined(boehmgc):
when defined(windows):
const boehmLib = "boehmgc.dll"