Skip to content

Commit

Permalink
clean up linkage options (pytorch#14609)
Browse files Browse the repository at this point in the history
Summary: minor code cleanup

Differential Revision: D13277803

Pulled By: soumith

fbshipit-source-id: 5ef925fe95037cab540b329054d7070c1ea7031e
  • Loading branch information
soumith authored and facebook-github-bot committed Nov 30, 2018
1 parent ad1b874 commit aa842fe
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -792,14 +792,8 @@ def run(self):
CAFFE2_LIBS.append(os.path.join(lib_path, 'caffe2_hip.lib'))

main_compile_args = ['-D_THP_CORE', '-DONNX_NAMESPACE=' + ONNX_NAMESPACE]
main_libraries = ['shm']
main_libraries = ['shm', 'torch_python']
main_link_args = []
if IS_WINDOWS:
main_link_args.append(os.path.join(lib_path, 'torch_python.lib'))
elif IS_DARWIN:
main_link_args.append(os.path.join(lib_path, 'libtorch_python.dylib'))
else:
main_link_args.append(os.path.join(lib_path, 'libtorch_python.so'))
main_sources = ["torch/csrc/stub.cpp"]

# Before the introduction of stub.cpp, _C.so and libcaffe2.so defined
Expand Down

0 comments on commit aa842fe

Please sign in to comment.