aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--tensorflow/workspace.bzl8
-rw-r--r--third_party/curl.BUILD22
2 files changed, 20 insertions, 10 deletions
diff --git a/tensorflow/workspace.bzl b/tensorflow/workspace.bzl
index 696f9b08b3..5ed9d05c8b 100644
--- a/tensorflow/workspace.bzl
+++ b/tensorflow/workspace.bzl
@@ -416,12 +416,12 @@ def tf_workspace(path_prefix="", tf_repo_name=""):
tf_http_archive(
name = "curl",
- sha256 = "ff3e80c1ca6a068428726cd7dd19037a47cc538ce58ef61c59587191039b2ca6",
+ sha256 = "e9c37986337743f37fd14fe8737f246e97aec94b39d1b71e8a5973f72a9fc4f5",
urls = [
- "https://mirror.bazel.build/curl.haxx.se/download/curl-7.49.1.tar.gz",
- "https://curl.haxx.se/download/curl-7.49.1.tar.gz",
+ "https://mirror.bazel.build/curl.haxx.se/download/curl-7.60.0.tar.gz",
+ "https://curl.haxx.se/download/curl-7.60.0.tar.gz",
],
- strip_prefix = "curl-7.49.1",
+ strip_prefix = "curl-7.60.0",
build_file = clean_dep("//third_party:curl.BUILD"),
)
diff --git a/third_party/curl.BUILD b/third_party/curl.BUILD
index 4def6f9489..1638b72161 100644
--- a/third_party/curl.BUILD
+++ b/third_party/curl.BUILD
@@ -7,6 +7,7 @@ exports_files(["COPYING"])
CURL_WIN_COPTS = [
"/Iexternal/curl/lib",
+ "/DBUILDING_LIBCURL",
"/DHAVE_CONFIG_H",
"/DCURL_DISABLE_FTP",
"/DCURL_DISABLE_NTLM",
@@ -49,6 +50,8 @@ cc_library(
"lib/curl_addrinfo.c",
"lib/curl_addrinfo.h",
"lib/curl_base64.h",
+ "lib/curl_ctype.c",
+ "lib/curl_ctype.h",
"lib/curl_des.h",
"lib/curl_endian.h",
"lib/curl_fnmatch.c",
@@ -75,6 +78,7 @@ cc_library(
"lib/curl_sec.h",
"lib/curl_setup.h",
"lib/curl_setup_once.h",
+ "lib/curl_sha256.h",
"lib/curl_sspi.c",
"lib/curl_sspi.h",
"lib/curl_threads.c",
@@ -134,6 +138,8 @@ cc_library(
"lib/md5.c",
"lib/memdebug.c",
"lib/memdebug.h",
+ "lib/mime.c",
+ "lib/mime.h",
"lib/mprintf.c",
"lib/multi.c",
"lib/multihandle.h",
@@ -153,8 +159,8 @@ cc_library(
"lib/pop3.h",
"lib/progress.c",
"lib/progress.h",
- "lib/rawstr.c",
- "lib/rawstr.h",
+ "lib/rand.c",
+ "lib/rand.h",
"lib/rtsp.c",
"lib/rtsp.h",
"lib/security.c",
@@ -162,8 +168,11 @@ cc_library(
"lib/select.h",
"lib/sendf.c",
"lib/sendf.h",
+ "lib/setopt.c",
+ "lib/setopt.h",
"lib/setup-os400.h",
"lib/setup-vms.h",
+ "lib/sha256.c",
"lib/share.c",
"lib/share.h",
"lib/sigpipe.h",
@@ -179,10 +188,10 @@ cc_library(
"lib/splay.c",
"lib/splay.h",
"lib/ssh.h",
+ "lib/strcase.c",
+ "lib/strcase.h",
"lib/strdup.c",
"lib/strdup.h",
- "lib/strequal.c",
- "lib/strequal.h",
"lib/strerror.c",
"lib/strerror.h",
"lib/strtok.c",
@@ -241,13 +250,12 @@ cc_library(
}),
hdrs = [
"include/curl/curl.h",
- "include/curl/curlbuild.h",
- "include/curl/curlrules.h",
"include/curl/curlver.h",
"include/curl/easy.h",
"include/curl/mprintf.h",
"include/curl/multi.h",
"include/curl/stdcheaders.h",
+ "include/curl/system.h",
"include/curl/typecheck-gcc.h",
],
copts = select({
@@ -256,6 +264,7 @@ cc_library(
"//conditions:default": [
"-Iexternal/curl/lib",
"-D_GNU_SOURCE",
+ "-DBUILDING_LIBCURL",
"-DHAVE_CONFIG_H",
"-DCURL_DISABLE_FTP",
"-DCURL_DISABLE_NTLM", # turning it off in configure is not enough
@@ -676,6 +685,7 @@ genrule(
"# define SIZEOF_INT 4",
"# define SIZEOF_LONG 8",
"# define SIZEOF_OFF_T 8",
+ "# define SIZEOF_CURL_OFF_T 8",
"# define SIZEOF_SHORT 2",
"# define SIZEOF_SIZE_T 8",
"# define SIZEOF_TIME_T 8",