summaryrefslogtreecommitdiff
path: root/WORKSPACE
diff options
context:
space:
mode:
authorGravatar Yannic <contact@yannic-bonenberger.com>2019-08-16 14:38:13 +0000
committerGravatar Derek Mauro <761129+derekmauro@users.noreply.github.com>2019-08-16 10:38:13 -0400
commit36910d3d7e9fccadd6603f232d0c4f54dcd47c7e (patch)
tree477a5d0a416e35eb922c5a0679db0ff2624e0aaa /WORKSPACE
parentaae8143cf9aa611f70d7ea9b95b8b8b383b2271a (diff)
[bazel] Add fixes for --incompatible_load_cc_rules_from_bzl (#351)
* [bazel] Add fixes for --incompatible_load_cc_rules_from_bzl Starting with Bazel 1.0 (September 2019), C++ rules will need to be loaded from the @rules_cc repository. This change adds the required loads for that. For full compatibility, we will need versions of googletest and google-benchmark that also includes these loads. * Run buildifier again after merge
Diffstat (limited to 'WORKSPACE')
-rw-r--r--WORKSPACE11
1 files changed, 11 insertions, 0 deletions
diff --git a/WORKSPACE b/WORKSPACE
index 49e2d3cb..376464ef 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -27,3 +27,14 @@ http_archive(
strip_prefix = "benchmark-16703ff83c1ae6d53e5155df3bb3ab0bc96083be",
sha256 = "59f918c8ccd4d74b6ac43484467b500f1d64b40cc1010daa055375b322a43ba3",
)
+
+# C++ rules for Bazel.
+http_archive(
+ name = "rules_cc",
+ sha256 = "67412176974bfce3f4cf8bdaff39784a72ed709fc58def599d1f68710b58d68b",
+ strip_prefix = "rules_cc-b7fe9697c0c76ab2fd431a891dbb9a6a32ed7c3e",
+ urls = [
+ "https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/b7fe9697c0c76ab2fd431a891dbb9a6a32ed7c3e.zip",
+ "https://github.com/bazelbuild/rules_cc/archive/b7fe9697c0c76ab2fd431a891dbb9a6a32ed7c3e.zip",
+ ],
+)