mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-07 13:33:22 +00:00
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:
@@ -95,7 +95,9 @@ when defined(windows):
|
||||
importc: "TlsGetValue", stdcall, dynlib: "kernel32".}
|
||||
|
||||
else:
|
||||
{.passL: "-pthread".}
|
||||
when not defined(macosx):
|
||||
{.passL: "-pthread".}
|
||||
|
||||
{.passC: "-pthread".}
|
||||
|
||||
type
|
||||
|
||||
Reference in New Issue
Block a user