Skip to content

Commit

Permalink
Export c10/[macros|util] headers to be used by internal inductor buil…
Browse files Browse the repository at this point in the history
…ds (pytorch#89249)

Summary: Fixes package boundary violation that existed in previous implementation

Test Plan: CI

Differential Revision: D41391862

Pull Request resolved: pytorch#89249
Approved by: https://github.com/izaitsevfb
  • Loading branch information
malfet authored and kulinseth committed Dec 9, 2022
1 parent 03de71e commit b0d8b70
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions c10/macros/build.bzl
Expand Up @@ -29,3 +29,12 @@ def define_targets(rules):
"//conditions:default": [],
}),
)
rules.filegroup(
name = "headers",
srcs = rules.glob(
["*.h"],
exclude = [
],
),
visibility = ["//:__pkg__"],
)
2 changes: 1 addition & 1 deletion c10/util/build.bzl
Expand Up @@ -68,5 +68,5 @@ def define_targets(rules):
exclude = [
],
),
visibility = ["//c10:__pkg__"],
visibility = ["//c10:__pkg__", "//:__pkg__"],
)

0 comments on commit b0d8b70

Please sign in to comment.