move version_h to shared build structure in Buck (#75964)

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

This is already in the shared build structure for Bazel, but we need
to implement genrule for fbcode.

There's an xplat target that can't build in fbcode yet because the
dependencies don't line up, so we have to add a tag to exclude it.

ghstack-source-id: 154696020

Test Plan: Rely on CI

Reviewed By: malfet

Differential Revision: D35443900

fbshipit-source-id: 0768b29906c8218d7aebfdc7c18d69f59a0c9384
(cherry picked from commit bff47be441bd142392a07aa177be02e18aa86f1c)
This commit is contained in:
mikey dagitses
2022-04-26 05:00:03 -07:00
committed by PyTorch MergeBot
parent b17b2b1cc7
commit 8b1cf8ed6b

View File

@ -10,6 +10,7 @@ def define_targets(rules):
tags = [
"supermodule:android/default/pytorch",
"supermodule:ios/default/public.pytorch",
"-fbcode",
"xplat",
],
visibility = ["//visibility:public"],