From 55ab6cc2b37491d397d7f207a759b48882db6d6d Mon Sep 17 00:00:00 2001 From: Hans Raaf Date: Fri, 13 Feb 2015 00:10:24 +0100 Subject: [PATCH] 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. --- lib/system/threads.nim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/system/threads.nim b/lib/system/threads.nim index 496c31af14..4e07200072 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