diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2018-09-21 23:30:59 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-09-21 23:34:25 -0700 |
commit | 94b5ff16ce1530e09bc30c51709b0596ff61103f (patch) | |
tree | f1e037b2cb32953973c4f5b0ec6a22712842d878 /tensorflow/core/BUILD | |
parent | edbd1a9afc31c9a5127ba769db5e1df11249660a (diff) |
Fully depend on external repositories (instead of just headers) in cc_header_only_library.
This allows TensorFlow to be build from another bazel repo.
PiperOrigin-RevId: 214091199
Diffstat (limited to 'tensorflow/core/BUILD')
-rw-r--r-- | tensorflow/core/BUILD | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/tensorflow/core/BUILD b/tensorflow/core/BUILD index 85b6d4ff68..d914fdb96c 100644 --- a/tensorflow/core/BUILD +++ b/tensorflow/core/BUILD @@ -2501,7 +2501,12 @@ tf_cuda_library( cc_header_only_library( name = "framework_internal_headers_lib", - includes = ["../../external/com_google_absl"], + # Fully depend on external repositories, because identifying the headers + # is fragile. + extra_deps = [ + "@com_google_absl//absl/strings", + "@com_google_absl//absl/types:span", + ], deps = [ ":lib", ":lib_internal", @@ -2587,11 +2592,12 @@ tf_cuda_library( cc_header_only_library( name = "framework_headers_lib", + # Fully depend on external repositories, because identifying the headers + # is fragile. extra_deps = [ - # ABSL headers get dropped, so we add them back here. "@com_google_absl//absl/strings", + "@com_google_absl//absl/types:span", ], - includes = ["../../external/com_google_absl"], visibility = ["//visibility:public"], deps = [ ":framework", @@ -2601,7 +2607,12 @@ cc_header_only_library( cc_header_only_library( name = "stream_executor_headers_lib", - includes = ["../../external/com_google_absl"], + # Fully depend on external repositories, because identifying the headers + # is fragile. + extra_deps = [ + "@com_google_absl//absl/strings", + "@com_google_absl//absl/types:span", + ], visibility = ["//visibility:public"], deps = [ ":stream_executor", |