aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/tools/ci_build/windows/cpu
diff options
context:
space:
mode:
authorGravatar Amit Patankar <amitpatankar@google.com>2018-06-04 14:26:09 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-06-04 14:28:52 -0700
commit3c87b99d8c8052c3b6d67190bca14ea89137221a (patch)
tree967671ad15143192de0b6019283506086913d279 /tensorflow/tools/ci_build/windows/cpu
parent204fcd9a002aa8678c42d076553e38d69e8724a6 (diff)
Remove --distinct_host_configuration=false from tools/bazel.rc
Don't use --distinct_host_configuration=false by default, because it would break cross compiling, like android build and Raspberry Pi build. Instead, we add it for builds that we know they have the same host and target platforms. PiperOrigin-RevId: 199194260
Diffstat (limited to 'tensorflow/tools/ci_build/windows/cpu')
-rw-r--r--tensorflow/tools/ci_build/windows/cpu/pip/build_tf_windows.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/tensorflow/tools/ci_build/windows/cpu/pip/build_tf_windows.sh b/tensorflow/tools/ci_build/windows/cpu/pip/build_tf_windows.sh
index 1b1c3815d8..0b13b97209 100644
--- a/tensorflow/tools/ci_build/windows/cpu/pip/build_tf_windows.sh
+++ b/tensorflow/tools/ci_build/windows/cpu/pip/build_tf_windows.sh
@@ -73,6 +73,10 @@ if [[ "$release_build" != 1 ]]; then
echo "build --define=override_eigen_strong_inline=true" >> "${TMP_BAZELRC}"
fi
+# The host and target platforms are the same in Windows build. So we don't have
+# to distinct them. This helps avoid building the same targets twice.
+echo "build --distinct_host_configuration=false" >> "${TMP_BAZELRC}"
+
echo "import %workspace%/${TMP_BAZELRC}" >> .bazelrc
run_configure_for_cpu_build