From 47e6785646a1266f01a1a570bd799f8518ee2997 Mon Sep 17 00:00:00 2001 From: Yun Peng Date: Tue, 6 Jun 2017 19:09:02 +0200 Subject: Fix patching issue on Windows (#10452) --- tensorflow/workspace.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") -- cgit v1.2.3