Skip to content

Commit ffc407e

Browse files
committed
Remove external headers from tensorflow, and use third_party headers instead
This PR removes external headers from tensorflow, and use third_party headers instead. Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
1 parent 0217f86 commit ffc407e

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

third_party/toolchains/tf/BUILD.tpl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ cc_library(
44
name = "tf_header_lib",
55
hdrs = [":tf_header_include"],
66
includes = ["include"],
7+
deps = [
8+
"@com_google_absl//absl/container:flat_hash_map",
9+
"@com_google_absl//absl/container:inlined_vector",
10+
"@com_google_absl//absl/strings",
11+
"@com_google_absl//absl/types:optional",
12+
"@com_google_absl//absl/types:span",
13+
],
714
visibility = ["//visibility:public"],
815
)
916

third_party/toolchains/tf/tf_configure.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def _symlink_genrule_for_dir(
147147
if src_dir != None:
148148
src_dir = _norm_path(src_dir)
149149
dest_dir = _norm_path(dest_dir)
150-
files = "\n".join(sorted(_read_dir(repository_ctx, src_dir).splitlines()))
150+
files = "\n".join(sorted([e for e in _read_dir(repository_ctx, src_dir).splitlines() if ("/external/" not in e) and ("/absl" not in e)]))
151151

152152
# Create a list with the src_dir stripped to use for outputs.
153153
if tf_pip_dir_rename_pair_len:

0 commit comments

Comments
 (0)