Skip to content

Commit

Permalink
force grep to not use color (tensorflow#8784)
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyipei authored and gunan committed Mar 29, 2017
1 parent ff11ab7 commit 346bd59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion third_party/gpus/cuda_configure.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def _find_cuda_define(repository_ctx, cudnn_header_dir, define):
cudnn_h_path = repository_ctx.path("%s/cudnn.h" % cudnn_header_dir)
if not cudnn_h_path.exists:
auto_configure_fail("Cannot find cudnn.h at %s" % str(cudnn_h_path))
result = repository_ctx.execute(["grep", "-E", define, str(cudnn_h_path)])
result = repository_ctx.execute(["grep", "--color=never", "-E", define, str(cudnn_h_path)])
if result.stderr:
auto_configure_fail("Error reading %s: %s" %
(result.stderr, str(cudnn_h_path)))
Expand Down

0 comments on commit 346bd59

Please sign in to comment.