pytorch
b508de64 - add static libraries to TorchConfig.cmake.in (#29837)

Commit
5 years ago
add static libraries to TorchConfig.cmake.in (#29837) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/29837 The current TorchConfig seems only handles shared libraries. When building static libraries it doesn't provide the list of all needed static libraries. This is especially a problem for mobile build as we build static libraries first then link into shared library / binary to do "gc-sections". Today we have to manually import these dependent libraries on each callsite. Test Plan: - build_mobile.sh builds and runs; - The baby test project in #29716 builds and runs; - Will check CI for other platforms; Differential Revision: D18513404 Pulled By: ljk53 fbshipit-source-id: c3dc2c01004c4c9c4574c71fd9a4253c9e19e1e9
Author
Parents
Loading