aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--tensorflow/workspace.bzl8
-rw-r--r--third_party/llvm/llvm.BUILD12
2 files changed, 15 insertions, 5 deletions
diff --git a/tensorflow/workspace.bzl b/tensorflow/workspace.bzl
index a6c5117e22..a6b062ea22 100644
--- a/tensorflow/workspace.bzl
+++ b/tensorflow/workspace.bzl
@@ -484,11 +484,11 @@ def tf_workspace(path_prefix="", tf_repo_name=""):
temp_workaround_http_archive(
name = "llvm",
urls = [
- "http://mirror.bazel.build/github.com/llvm-mirror/llvm/archive/5d353d4750143a13e53abf721d521684ba6a5165.tar.gz",
- "https://github.com/llvm-mirror/llvm/archive/5d353d4750143a13e53abf721d521684ba6a5165.tar.gz",
+ "http://mirror.bazel.build/github.com/llvm-mirror/llvm/archive/9e886358ff35a13de549b4adf49b52f933b9ec37.tar.gz",
+ "https://github.com/llvm-mirror/llvm/archive/9e886358ff35a13de549b4adf49b52f933b9ec37.tar.gz",
],
- sha256 = "148e96f1cfb0b880e0831a287f44d48251eabc20e24589e6fa4db5916c0c8153",
- strip_prefix = "llvm-5d353d4750143a13e53abf721d521684ba6a5165",
+ sha256 = "5a56369e906e5af2d4baf5a92317a3db085800e848def7114aba176c80432ea0",
+ strip_prefix = "llvm-9e886358ff35a13de549b4adf49b52f933b9ec37",
build_file = str(Label("//third_party/llvm:llvm.BUILD")),
repository = tf_repo_name,
)
diff --git a/third_party/llvm/llvm.BUILD b/third_party/llvm/llvm.BUILD
index 678626b374..3b13b297f8 100644
--- a/third_party/llvm/llvm.BUILD
+++ b/third_party/llvm/llvm.BUILD
@@ -257,6 +257,16 @@ cc_library(
includes = ["include"],
)
+# A creator of an empty file include/llvm/Support/VCSRevision.h.
+# This is usually populated by the upstream build infrastructure, but in this
+# case we leave it blank. See upstream revision r300160.
+genrule(
+ name = "vcs_revision_gen",
+ srcs = [],
+ outs = ["include/llvm/Support/VCSRevision.h"],
+ cmd = "echo '' > \"$@\"",
+)
+
# Rules that apply the LLVM tblgen tool.
gentbl(
name = "intrinsics_gen",
@@ -1172,7 +1182,7 @@ cc_library(
"include/llvm/IR/*.def",
"include/llvm/IR/*.inc",
"include/llvm/*.h",
- ]),
+ ]) + ["include/llvm/Support/VCSRevision.h"],
deps = [
":attributes_compat_gen",
":attributes_gen",