Skip to content

Commit

Permalink
Update tf_configure.bzl to allow centos 7 build
Browse files Browse the repository at this point in the history
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
  • Loading branch information
yongtang committed Feb 15, 2020
1 parent 417febb commit 3ddffb1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions third_party/toolchains/tf/tf_configure.bzl
Expand Up @@ -156,6 +156,14 @@ def _symlink_genrule_for_dir(
else:
dest_files = files.replace(src_dir, "").splitlines()
src_files = files.splitlines()
# Centos may have header files in both lib and lib64:
if src_dir.count("/lib64/"):
extra_src_dir = src_dir.replace("/lib64/", "/lib/")
extra_files = "\n".join(sorted(_read_dir(repository_ctx, extra_src_dir).splitlines()))
extra_dest_files = extra_files.replace(extra_src_dir, "").splitlines()
extra_src_files = extra_files.splitlines()
src_files = src_files + extra_src_files
dest_files = dest_files + extra_dest_files
command = []
outs = []

Expand Down

0 comments on commit 3ddffb1

Please sign in to comment.