Skip to content

Commit

Permalink
third_party: unbundle nsync
Browse files Browse the repository at this point in the history
This adds to PR 20284 and enabled nsync to use the system libs.
The required changes are in nsync-1.20.1.

Signed-off-by: Jason Zaman <jason@perfinion.com>
  • Loading branch information
perfinion committed Aug 14, 2018
1 parent 34536b8 commit f2444ba
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions tensorflow/workspace.bzl
Expand Up @@ -400,6 +400,7 @@ def tf_workspace(path_prefix = "", tf_repo_name = ""):
],
sha256 = "692f9b30e219f71a6371b98edd39cef3cbda35ac3abc4cd99ce19db430a5591a",
strip_prefix = "nsync-1.20.1",
system_build_file = clean_dep("//third_party/systemlibs:nsync.BUILD"),
)

tf_http_archive(
Expand Down
23 changes: 23 additions & 0 deletions third_party/systemlibs/nsync.BUILD
@@ -0,0 +1,23 @@
licenses(["notice"]) # BSD 3-Clause

filegroup(
name = "LICENSE",
visibility = ["//visibility:public"],
)

cc_library(
name = "nsync_headers",
visibility = ["//visibility:public"],
)

cc_library(
name = "nsync",
linkopts = ["-lnsync"],
visibility = ["//visibility:public"],
)

cc_library(
name = "nsync_cpp",
linkopts = ["-lnsync_cpp"],
visibility = ["//visibility:public"],
)
1 change: 1 addition & 0 deletions third_party/systemlibs/syslibs_configure.bzl
Expand Up @@ -22,6 +22,7 @@ VALID_LIBS=[
"jsoncpp_git",
"lmdb",
"nasm",
"nsync",
"org_sqlite",
"pcre",
"png_archive",
Expand Down

0 comments on commit f2444ba

Please sign in to comment.