From 36c568f1fdc53376052ab354d56f33e0df4a9319 Mon Sep 17 00:00:00 2001 From: Jason Zaman Date: Wed, 15 Aug 2018 16:35:48 +0800 Subject: systemlibs: Unbundle double_conversion library Signed-off-by: Jason Zaman --- tensorflow/workspace.bzl | 4 +++- third_party/systemlibs/double_conversion.BUILD | 12 ++++++++++++ third_party/systemlibs/syslibs_configure.bzl | 1 + 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 third_party/systemlibs/double_conversion.BUILD diff --git a/tensorflow/workspace.bzl b/tensorflow/workspace.bzl index d0531f8193..a1e7567f4f 100755 --- a/tensorflow/workspace.bzl +++ b/tensorflow/workspace.bzl @@ -738,14 +738,16 @@ def tf_workspace(path_prefix = "", tf_repo_name = ""): build_file = clean_dep("//third_party:arm_neon_2_x86_sse.BUILD"), ) - native.new_http_archive( + tf_http_archive( name = "double_conversion", urls = [ + "https://mirror.bazel.build/github.com/google/double-conversion/archive/3992066a95b823efc8ccc1baf82a1cfc73f6e9b8.zip", "https://github.com/google/double-conversion/archive/3992066a95b823efc8ccc1baf82a1cfc73f6e9b8.zip", ], sha256 = "2f7fbffac0d98d201ad0586f686034371a6d152ca67508ab611adc2386ad30de", strip_prefix = "double-conversion-3992066a95b823efc8ccc1baf82a1cfc73f6e9b8", build_file = clean_dep("//third_party:double_conversion.BUILD"), + system_build_file = clean_dep("//third_party/systemlibs:double_conversion.BUILD"), ) tf_http_archive( diff --git a/third_party/systemlibs/double_conversion.BUILD b/third_party/systemlibs/double_conversion.BUILD new file mode 100644 index 0000000000..568460181a --- /dev/null +++ b/third_party/systemlibs/double_conversion.BUILD @@ -0,0 +1,12 @@ +licenses(["notice"]) + +filegroup( + name = "LICENSE", + visibility = ["//visibility:public"], +) + +cc_library( + name = "double-conversion", + linkopts = ["-ldouble-conversion"], + visibility = ["//visibility:public"], +) diff --git a/third_party/systemlibs/syslibs_configure.bzl b/third_party/systemlibs/syslibs_configure.bzl index 8b09c9ac1f..41b867e770 100644 --- a/third_party/systemlibs/syslibs_configure.bzl +++ b/third_party/systemlibs/syslibs_configure.bzl @@ -14,6 +14,7 @@ VALID_LIBS = [ "com_googlesource_code_re2", "curl", "cython", + "double_conversion", "flatbuffers", "gif_archive", "grpc", -- cgit v1.2.3