8000 Update on "switch aten_headers to use strip_include_prefix instead of… · pytorch/pytorch@44fb736 · GitHub
[go: up one dir, main page]

Skip to content

Commit 44fb736

Browse files
author
Michael Andreas Dagitses
committed
Update on "switch aten_headers to use strip_include_prefix instead of includes"
This is Bazel best practices and easier to maintain. Differential Revision: [D36521515](https://our.inte 8000 rnmc.facebook.com/intern/diff/D36521515/) [ghstack-poisoned]
2 parents c3a9eba + 55766d4 commit 44fb736

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

BUILD.bazel

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -220,14 +220,15 @@ cc_library(
220220

221221
cc_library(
222222
name = "aten_headers",
223-
hdrs = glob([
224-
"aten/src/**/*.h",
225-
"aten/src/**/*.hpp",
226-
"aten/src/ATen/cuda/**/*.cuh",
227-
"aten/src/ATen/native/**/*.cuh",
228-
"aten/src/THC/*.cuh",
229-
],
230-
], exclude = aten_core_hdrs(rules = rules)
223+
hdrs = glob(
224+
[
225+
"aten/src/**/*.h",
226+
"aten/src/**/*.hpp",
227+
"aten/src/ATen/cuda/**/*.cuh",
228+
"aten/src/ATen/native/**/*.cuh",
229+
"aten/src/THC/*.cuh",
230+
],
231+
exclude = aten_core_hdrs(rules = rules),
231232
) + [
232233
":aten_src_ATen_config",
233234
":gen_aten",

0 commit comments

Comments
 (0)
0