Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SGR/Assistant: making sure linker drops unnecessary dependencies (#11…
…2871) Summary: Assistant/SGR is linked in a way that links to all not-reference libraries are dropped: https://www.internalfb.com/code/fbsource/[c74911ac21d6b90d1fbca8f2de08d6269f44e1fc]/xplat/toolchains/android/ndk/ndk_toolchains.bzl?lines=931 However, `caffe2` overrides this setting https://www.internalfb.com/code/fbsource/[2536ee6849b08da1adcd5b9da0e455a4af3a06d1][blame]/xplat/caffe2/c2_defs.bzl?lines=496. That results in the build breaks like discussed here: https://fb.workplace.com/groups/llvm.gcc/permalink/25390586597229949/ : Assistant doesn't use libforce_dlopen but it sill requires it, and that library exist on device. As we statically link all operators, the `caffe2` override doesn't seem to be necessary. This diff adds a build parameter affecting `caffe2` linker options. Test Plan: Built supernova experimental build, made sure Assistant starts without operator issues. Tried tts, ocr and asr command in SGR, made sure they work. Verified that hypernova build doesn't required libforce_dlopen when D50695343 is applied. Reviewed By: veselinp Differential Revision: D50870489 Pull Request resolved: #112871 Approved by: https://github.com/vybv, https://github.com/PaliC
- Loading branch information