[Fix] torch_common target shared by lite-interpreter and full-jit" and turn on query-based selective build (#40673)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/40673
As title. We planed to have lite-interpreter and full-jit co-exist for short-term. To avoid the duplicated symbol and operator registrations in dynamic lib loading, we put the common files in a separate component.
The original source file list names are reserved.
ghstack-source-id: 106757184
Test Plan: CI
Reviewed By: kwanmacher
Differential Revision: D22276185
fbshipit-source-id: 328a8ba9c3d88437da0d30c6e6791087d0df5e2e