Skip to content

Commit

Permalink
Make grpc buildable on Windows (tensorflow#4454)
Browse files Browse the repository at this point in the history
* Make grpc buildable on Windows

grpc++_unsecure needs zlib to build, adding @zlib_archive as a dependency

* Bind @zlib_archive//:zlib as //external:zlib
  • Loading branch information
meteorcloudy authored and martinwicke committed Sep 20, 2016
1 parent d3757bd commit ca9e4b7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions grpc.BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -1224,6 +1224,7 @@ cc_library(
deps = [
":gpr",
"//external:nanopb",
"//external:zlib",
],
copts = [
"-std=gnu99",
Expand Down
5 changes: 5 additions & 0 deletions tensorflow/workspace.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -204,3 +204,8 @@ def tf_workspace(path_prefix = "", tf_repo_name = ""):
sha256 = "36658cb768a54c1d4dec43c3116c27ed893e88b02ecfcb44f2166f9c0b7f2a0d",
build_file = str(Label("//:zlib.BUILD")),
)

native.bind(
name = "zlib",
actual = "@zlib_archive//:zlib",
)

0 comments on commit ca9e4b7

Please sign in to comment.