summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorHans Raaf <hara@oderwat.de>2015-02-13 00:10:24 +0100
committerHans Raaf <hara@oderwat.de>2015-02-13 01:51:46 +0100
commit55ab6cc2b37491d397d7f207a759b48882db6d6d (patch)
tree174d217814f00c147e3a48c6e37d13370d4e7f21
parentf039aad5e00d7da545f79f3a395ccc82bdd599ff (diff)
downloadNim-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.nim4
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