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:
Hans Raaf
2015-02-13 00:10:24 +01:00
parent f039aad5e0
commit 55ab6cc2b3

View File

@@ -95,7 +95,9 @@ when defined(windows):
importc: "TlsGetValue", stdcall, dynlib: "kernel32".}
else:
{.passL: "-pthread".}
when not defined(macosx):
{.passL: "-pthread".}
{.passC: "-pthread".}
type