summary refs log tree commit diff stats
path: root/lib/system/threads.nim
diff options
context:
space:
mode:
Diffstat (limited to 'lib/system/threads.nim')
-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