Fixed threading issues for tcc backend
This commit is contained in:
parent
7281b66a4f
commit
0968771785
3 changed files with 52 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue