build_variables.py: turn on link_whole for _C_impl library. (#18763)
authorMikhail Zolotukhin <mvz@fb.com>
Tue, 2 Apr 2019 22:14:18 +0000 (15:14 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 2 Apr 2019 22:17:13 +0000 (15:17 -0700)
commit74d914655978b7ef3f2fcb20464060eaee7a4e16
tree36c8189ce38b3e1b6454aecd16acb429a08be448
parent84a9694ed0c85c0bc844915adf9f2c8fd53bacb1
build_variables.py: turn on link_whole for _C_impl library. (#18763)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/18763

Without `link_whole` flag in opt-builds some of the files are not linked into `_C_impl` library, which causes some of static initializers not to run (namely, registering an cutomPythonOperation from python_interpreter.cpp). This diff fixes it.

Differential Revision: D14732471

fbshipit-source-id: 57cff6b4b6d479ad7ab7fd29f677746d91d6ff45
tools/build_variables.py