diff options
author | Hans Raaf <hara@oderwat.de> | 2015-02-13 00:10:24 +0100 |
---|---|---|
committer | Hans Raaf <hara@oderwat.de> | 2015-02-13 01:51:46 +0100 |
commit | 55ab6cc2b37491d397d7f207a759b48882db6d6d (patch) | |
tree | 174d217814f00c147e3a48c6e37d13370d4e7f21 | |
parent | f039aad5e00d7da545f79f3a395ccc82bdd599ff (diff) | |
download | Nim-55ab6cc2b37491d397d7f207a759b48882db6d6d.tar.gz |
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.
-rw-r--r-- | lib/system/threads.nim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/system/threads.nim b/lib/system/threads.nim index 496c31af1..4e0720007 100644 --- a/lib/system/threads.nim +++ b/lib/system/threads.nim @@ -95,7 +95,9 @@ when defined(windows): importc: "TlsGetValue", stdcall, dynlib: "kernel32".} else: - {.passL: "-pthread".} + when not defined(macosx): + {.passL: "-pthread".} + {.passC: "-pthread".} type |