mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-15 23:54:19 +00:00
static link lpthread correctly on windows
This commit is contained in:
@@ -179,6 +179,9 @@ nimblepath="$home/.nimble/pkgs/"
|
||||
# Configuration for the GNU C/C++ compiler:
|
||||
@if windows:
|
||||
#gcc.path = r"$nim\dist\mingw\bin"
|
||||
@if gcc:
|
||||
gcc.options.linker %= "-Wl,-Bstatic -lpthread"
|
||||
@end
|
||||
@if tcc:
|
||||
tlsEmulation:on
|
||||
@end
|
||||
|
||||
@@ -35,8 +35,6 @@
|
||||
## deinitLock(L)
|
||||
|
||||
|
||||
when defined(windows) and defined(gcc) and (not compileOption("tlsEmulation")):
|
||||
{.passl: "-Wl,-Bstatic -lpthread -Wl,-Bdynamic".}
|
||||
|
||||
import std/private/[threadtypes]
|
||||
export Thread
|
||||
|
||||
Reference in New Issue
Block a user