8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc5803a commit b9c3fd5Copy full SHA for b9c3fd5
BUILD.bazel
@@ -238,15 +238,28 @@ cc_library(
238
":aten_src_ATen_config",
239
":gen_aten",
240
],
241
- includes = [
242
- "aten/src",
243
- ],
+ strip_include_prefix = "aten/src/",
244
deps = [
245
":aten_core_headers",
+ ":torch_base_headers",
246
"//c10:headers",
247
248
)
249
+# Temporary library to enable us to use strip_include_prefix =
250
+# "aten/src/" in aten_headers above. Only use this in aten_headers.
251
+cc_library(
252
+ name = "torch_base_headers",
253
+ hdrs = [
254
+ "torch/csrc/Export.h",
255
+ "torch/csrc/jit/frontend/function_schema_parser.h",
256
+ ],
257
+ deps = [
258
+ "//c10/macros",
259
+ "//c10/util:base",
260
261
+)
262
+
263
ATEN_COPTS = COMMON_COPTS + [
264
"-DCAFFE2_BUILD_MAIN_LIBS",
265
"-DHAVE_AVX_CPU_DEFINITION",
0 commit comments