mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 12:54:11 +08:00
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:
committed by
PyTorch MergeBot
parent
b13cd141b3
commit
f37a6523ef
@ -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,
|
||||
|
@ -11,5 +11,8 @@ py_binary(
|
||||
py_binary(
|
||||
name = "gen_version_header",
|
||||
srcs = ["gen_version_header.py"],
|
||||
visibility = ["//:__pkg__"],
|
||||
visibility = [
|
||||
"//:__pkg__",
|
||||
"//torch/headeronly:__pkg__",
|
||||
],
|
||||
)
|
||||
|
@ -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__",
|
||||
],
|
||||
)
|
||||
|
Reference in New Issue
Block a user