diff options
author | ringabout <43030857+ringabout@users.noreply.github.com> | 2023-04-15 04:52:35 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-14 22:52:35 +0200 |
commit | 512517c223a649018072effcb7bd9f3f9b9d16d3 (patch) | |
tree | 9d1589b9fa87f0fc588e7fb12680da943af4689b /lib/std | |
parent | 1a99bcd6abfa41144079e384f35085d79ef20268 (diff) | |
download | Nim-512517c223a649018072effcb7bd9f3f9b9d16d3.tar.gz |
fixes #18146; fixes #19372; disable tlsEmulation on windows; static link pthreads with mingw (#21668)
* fixes #18146; disable tlsEmulation on windows; static link libwinthreads DLL * whatever
Diffstat (limited to 'lib/std')
-rw-r--r-- | lib/std/typedthreads.nim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/std/typedthreads.nim b/lib/std/typedthreads.nim index 8359ca353..6cc5dd9e0 100644 --- a/lib/std/typedthreads.nim +++ b/lib/std/typedthreads.nim @@ -34,6 +34,10 @@ ## ## deinitLock(L) + +when defined(windows) and defined(gcc) and (not compileOption("tlsEmulation")): + {.passl: "-Wl,-Bstatic -lpthread -Wl,-Bdynamic".} + import std/private/[threadtypes] export Thread |