Disable -pthread for linker on OSX
The -pthread is not needed on Darwin/OS X and the Apple compilers give a warning about this if you use --threads:on with the Nim compiler.
This commit is contained in:
parent
f039aad5e0
commit
55ab6cc2b3
1 changed files with 3 additions and 1 deletions
|
|
@ -95,7 +95,9 @@ when defined(windows):
|
||||||
importc: "TlsGetValue", stdcall, dynlib: "kernel32".}
|
importc: "TlsGetValue", stdcall, dynlib: "kernel32".}
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
when not defined(macosx):
|
||||||
{.passL: "-pthread".}
|
{.passL: "-pthread".}
|
||||||
|
|
||||||
{.passC: "-pthread".}
|
{.passC: "-pthread".}
|
||||||
|
|
||||||
type
|
type
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue