Skip to content
Snippets Groups Projects
Commit 8eac91ea authored by Alexander Staubo's avatar Alexander Staubo
Browse files

OS X doesn't have librt, so don't link to it.

parent bc83a5ea
No related branches found
No related tags found
No related merge requests found
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
from distutils import core as _core from distutils import core as _core
import setuptools import setuptools
import sys
_EXTENSION_SOURCES = ( _EXTENSION_SOURCES = (
'grpc/_adapter/_c.c', 'grpc/_adapter/_c.c',
...@@ -50,8 +51,9 @@ _EXTENSION_INCLUDE_DIRECTORIES = ( ...@@ -50,8 +51,9 @@ _EXTENSION_INCLUDE_DIRECTORIES = (
_EXTENSION_LIBRARIES = ( _EXTENSION_LIBRARIES = (
'grpc', 'grpc',
'gpr', 'gpr',
'rt',
) )
if not "darwin" in sys.platform:
_EXTENSION_LIBRARIES += ('rt',)
_EXTENSION_MODULE = _core.Extension( _EXTENSION_MODULE = _core.Extension(
'grpc._adapter._c', sources=list(_EXTENSION_SOURCES), 'grpc._adapter._c', sources=list(_EXTENSION_SOURCES),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment