Skip to content

Commit c57b696

Browse files
committed
fix: attempt to fix CI failures related to missing headers
1 parent c2745a5 commit c57b696

File tree

3 files changed

+33
-15
lines changed

3 files changed

+33
-15
lines changed

=2.12.0.dev

Whitespace-only changes.

third_party/libtorch/BUILD

Lines changed: 30 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,12 @@ cc_library(
3939
exclude = [
4040
"include/torch/csrc/api/include/**/*.h",
4141
],
42-
) + glob([
43-
"include/torch/csrc/api/include/**/*.h",
44-
]),
42+
) + glob(
43+
[
44+
"include/torch/csrc/api/include/**/*.h",
45+
],
46+
allow_empty = True,
47+
),
4548
includes = [
4649
"include",
4750
"include/torch/csrc/api/include/",
@@ -58,9 +61,12 @@ cc_library(
5861
":windows": ["lib/c10_cuda.lib"],
5962
"//conditions:default": ["lib/libc10_cuda.so"],
6063
}),
61-
hdrs = glob([
62-
"include/c10/**/*.h",
63-
]),
64+
hdrs = glob(
65+
[
66+
"include/c10/**/*.h",
67+
],
68+
allow_empty = True,
69+
),
6470
strip_include_prefix = "include",
6571
deps = [
6672
":c10",
@@ -73,17 +79,23 @@ cc_library(
7379
":windows": ["lib/c10.lib"],
7480
"//conditions:default": ["lib/libc10.so"],
7581
}),
76-
hdrs = glob([
77-
"include/c10/**/*.h",
78-
]),
82+
hdrs = glob(
83+
[
84+
"include/c10/**/*.h",
85+
],
86+
allow_empty = True,
87+
),
7988
strip_include_prefix = "include",
8089
)
8190

8291
cc_library(
8392
name = "ATen",
84-
hdrs = glob([
85-
"include/ATen/**/*.h",
86-
]),
93+
hdrs = glob(
94+
[
95+
"include/ATen/**/*.h",
96+
],
97+
allow_empty = True,
98+
),
8799
strip_include_prefix = "include",
88100
)
89101

@@ -97,8 +109,11 @@ cc_library(
97109
"lib/libcaffe2_nvrtc.so",
98110
],
99111
}),
100-
hdrs = glob([
101-
"include/caffe2/**/*.h",
102-
]),
112+
hdrs = glob(
113+
[
114+
"include/caffe2/**/*.h",
115+
],
116+
allow_empty = True,
117+
),
103118
strip_include_prefix = "include",
104119
)

uv.lock

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)