mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 12:54:11 +08:00
remove //c10:headers (#98420)
The c10 library is light enough that there's not really much benefit to being very unbazel-y and providing an incomplete library that lacks the source files. Differential Revision: [D44713077](https://our.internmc.facebook.com/intern/diff/D44713077/) Pull Request resolved: https://github.com/pytorch/pytorch/pull/98420 Approved by: https://github.com/ezyang
This commit is contained in:
committed by
PyTorch MergeBot
parent
937ba248eb
commit
f557402e8d
@ -314,7 +314,7 @@ cc_library(
|
||||
"aten/src",
|
||||
],
|
||||
deps = [
|
||||
"//c10:headers",
|
||||
"//c10",
|
||||
],
|
||||
)
|
||||
|
||||
@ -383,7 +383,7 @@ cc_library(
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
":aten_headers",
|
||||
"//c10:headers",
|
||||
"//c10",
|
||||
"@cuda",
|
||||
"@cuda//:cuda_driver",
|
||||
"@cuda//:nvrtc",
|
||||
@ -1262,7 +1262,7 @@ cc_library(
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
":caffe2_core_macros",
|
||||
"//c10:headers",
|
||||
"//c10",
|
||||
"//caffe2/proto:caffe2_pb",
|
||||
],
|
||||
)
|
||||
@ -1579,7 +1579,7 @@ cc_library(
|
||||
deps = [
|
||||
":aten_headers",
|
||||
":caffe2_headers",
|
||||
"//c10:headers",
|
||||
"//c10",
|
||||
"@com_github_google_flatbuffers//:flatbuffers",
|
||||
"@local_config_python//:python_headers",
|
||||
"@onnx",
|
||||
|
@ -28,25 +28,3 @@ config_setting(
|
||||
name = "using_glog",
|
||||
flag_values = {":use_glog": "true"},
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "headers",
|
||||
hdrs = [
|
||||
"//c10/core:headers",
|
||||
"//c10/cuda:headers",
|
||||
"//c10/mobile:headers",
|
||||
"//c10/util:headers",
|
||||
],
|
||||
deps = [
|
||||
"//c10/core:alignment",
|
||||
"//c10/cuda:Macros",
|
||||
"//c10/macros:macros",
|
||||
] + select({
|
||||
":using_gflags": ["@com_github_gflags_gflags//:gflags"],
|
||||
"//conditions:default": [],
|
||||
}) + select({
|
||||
":using_glog": ["@com_github_glog//:glog"],
|
||||
"//conditions:default": [],
|
||||
}),
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
Reference in New Issue
Block a user