Skip to content

Commit

Permalink
support mac dylib
Browse files Browse the repository at this point in the history
  • Loading branch information
samskalicky committed Mar 4, 2020
1 parent 5cffa74 commit 981900a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/python/unittest/test_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ def check_platform():
def test_custom_op():
# possible places to find library file
if (os.name=='posix'):
lib = 'libcustomop_lib.so'
# check if mac
if platform.system() == 'Darwin':
lib = 'libcustomop_lib.dylib'
else:
lib = 'libcustomop_lib.so'
if os.path.exists(lib):
fname = lib
elif os.path.exists(os.path.join(base_path,'build/'+lib)):
Expand Down

0 comments on commit 981900a

Please sign in to comment.