extract //c10 to common build system (#71411)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/71411
This library is mostly the same now externally and internally, though
internal to Meta we never include cuda in this library, so our select
resolves internally unconditionally to false.
ghstack-source-id: 150235103
Test Plan: This ought to be a no-op, rely on CI.
Reviewed By: malfet
Differential Revision: D33635739
fbshipit-source-id: a4d3c7e30995c0e43ecd4c69ad0abb23498ee098
(cherry picked from commit c574a123615588adbe42cc51a713fccfa1b2cac0)