diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2015-02-15 15:07:05 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2015-02-15 15:07:05 +0100 |
commit | 21fdda8fbc644692ecd38ca07a476d18bd00feac (patch) | |
tree | c24ac49884c12ffc2692418bba32fd235c348a8f | |
parent | dcf2f8b002ad420c5f248ff0922cc20fb7929aac (diff) | |
parent | 55ab6cc2b37491d397d7f207a759b48882db6d6d (diff) | |
download | Nim-21fdda8fbc644692ecd38ca07a476d18bd00feac.tar.gz |
Merge pull request #2115 from oderwat/no-pthread-on-osx
Disable -pthread for compiler/linker on OSX
-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 |