aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar Kiril Gorovoy <kgorovoy@google.com>2016-06-06 17:32:59 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-06-06 18:47:33 -0700
commit439d9e2fe36eebe6b6a28ae2883bb550535e8bd6 (patch)
tree6570abefeb5ee81d6ca9ae80b5400513c22b3425 /tools
parentc17fa692aeaf83aa1fb422c812a5b93f11b22cc0 (diff)
Fix genrule Python execution problem with Python3.
Change: 124202095
Diffstat (limited to 'tools')
-rw-r--r--tools/bazel.rc.template1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/bazel.rc.template b/tools/bazel.rc.template
index d4dddb5211..02856822c9 100644
--- a/tools/bazel.rc.template
+++ b/tools/bazel.rc.template
@@ -2,6 +2,7 @@ build:cuda --crosstool_top=//third_party/gpus/crosstool
build:cuda --define=using_cuda=true --define=using_cuda_nvcc=true
build --force_python=py$PYTHON_MAJOR_VERSION
+build --host_force_python=py$PYTHON_MAJOR_VERSION
build --python$PYTHON_MAJOR_VERSION_path=$PYTHON_BINARY
build --define=use_fast_cpp_protos=true
build --define=allow_oversize_protos=true