Explicitly import tools/bazel.rc

To fix build with Bazel 0.19.0 or later and it won't break build with old version or Bazel
Fixes https://github.com/tensorflow/tensorflow/issues/23398
This commit is contained in:
Yun Peng
2018-11-07 11:18:53 +01:00
committed by GitHub
parent 71e495448c
commit 03e63a291b

View File

@@ -1555,6 +1555,9 @@ def main():
check_bazel_version('0.15.0')
reset_tf_configure_bazelrc()
# Explicitly import tools/bazel.rc, this is needed for Bazel 0.19.0 or later
write_to_bazelrc('import %workspace%/tools/bazel.rc')
cleanup_makefile()
setup_python(environ_cp)