diff options
author | Yun Peng <pcloudy@google.com> | 2017-06-06 19:09:02 +0200 |
---|---|---|
committer | gunan <gunan@google.com> | 2017-06-06 10:09:02 -0700 |
commit | 47e6785646a1266f01a1a570bd799f8518ee2997 (patch) | |
tree | e157c22c2212619cbf33294a96f9c23a0f7df22a | |
parent | 6d54f09d97c58702e9ec8882b5c4ba8178415346 (diff) |
Fix patching issue on Windows (#10452)
-rw-r--r-- | tensorflow/workspace.bzl | 2 |
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") |