aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Yun Peng <pcloudy@google.com>2017-06-06 19:09:02 +0200
committerGravatar gunan <gunan@google.com>2017-06-06 10:09:02 -0700
commit47e6785646a1266f01a1a570bd799f8518ee2997 (patch)
treee157c22c2212619cbf33294a96f9c23a0f7df22a
parent6d54f09d97c58702e9ec8882b5c4ba8178415346 (diff)
Fix patching issue on Windows (#10452)
-rw-r--r--tensorflow/workspace.bzl2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/workspace.bzl b/tensorflow/workspace.bzl
index d7dd16919a..4b423b19af 100644
--- a/tensorflow/workspace.bzl
+++ b/tensorflow/workspace.bzl
@@ -98,7 +98,7 @@ def _execute_and_check_ret_code(repo_ctx, cmd_and_args):
# Runs 'patch -p1'
def _apply_patch(repo_ctx, patch_file):
cmd = [
- "patch", "-p1", "-d", repo_ctx.path("."), "-i", repo_ctx.path(patch_file)
+ "patch", "--binary", "-p1", "-d", repo_ctx.path("."), "-i", repo_ctx.path(patch_file)
]
if _is_windows(repo_ctx):
bazel_sh = _get_env_var(repo_ctx, "BAZEL_SH")