Move version.h to torch/headeronly (#164381)

Differential Revision: [D83685392](https://our.internmc.facebook.com/intern/diff/D83685392)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/164381
Approved by: https://github.com/janeyx99
This commit is contained in:
Mikayla Gawarecki
2025-10-06 18:29:20 -07:00
committed by PyTorch MergeBot
parent b13cd141b3
commit f37a6523ef
12 changed files with 62 additions and 25 deletions

View File

@ -16,6 +16,7 @@ def _is_cpu_static_dispatch_build():
# build structure aims to replicate Bazel as much as possible, most of
# the rules simply forward to the Bazel definitions.
rules = struct(
alias = native.alias,
cc_binary = cc_binary,
cc_library = cc_library,
cc_test = cc_test,

View File

@ -11,5 +11,8 @@ py_binary(
py_binary(
name = "gen_version_header",
srcs = ["gen_version_header.py"],
visibility = ["//:__pkg__"],
visibility = [
"//:__pkg__",
"//torch/headeronly:__pkg__",
],
)

View File

@ -13,5 +13,8 @@ def define_targets(rules):
rules.py_binary(
name = "gen_version_header",
srcs = ["gen_version_header.py"],
visibility = ["//:__pkg__"],
visibility = [
"//:__pkg__",
"//torch/headeronly:__pkg__",
],
)