aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Jonathan Hseu <jhseu@google.com>2017-01-18 12:18:48 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-01-18 12:28:50 -0800
commitaa22f93fc85467f3d8aa388e8ee6fdd932ee74cb (patch)
treea76a7e389525c5fc3826619b3fef57ac66e687ba
parent0b94cb56e01dbd51cb5c9eeec0244a7f77d8578f (diff)
Set --distinct_host_configuration=false to save CI build times.
- Will only build using target configuration for tool dependencies. There are only a few of those, so it doesn't affect much. - It's also pretty safe because we do a clean build everytime, so we don't need this as an optimization for rebuilds. Change: 144865801
-rwxr-xr-xtensorflow/tools/ci_build/ci_parameterized_build.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tensorflow/tools/ci_build/ci_parameterized_build.sh b/tensorflow/tools/ci_build/ci_parameterized_build.sh
index 6f6684dcdf..46f97891d3 100755
--- a/tensorflow/tools/ci_build/ci_parameterized_build.sh
+++ b/tensorflow/tools/ci_build/ci_parameterized_build.sh
@@ -332,6 +332,11 @@ else
EXTRA_ARGS="${TF_BUILD_APPEND_ARGUMENTS} --test_tag_filters=-benchmark-test"
fi
+# For any "tool" dependencies in genrules, Bazel will build them for host
+# instead of the target configuration. We can save some build time by setting
+# this flag, and it only affects a few tests.
+EXTRA_ARGS="${EXTRA_ARGS} --distinct_host_configuration=false"
+
# Process PIP install-test option
if [[ ${TF_BUILD_IS_PIP} == "no_pip" ]] ||
[[ ${TF_BUILD_IS_PIP} == "both" ]]; then