about summary refs log tree commit diff
path: root/absl/random
diff options
context:
space:
mode:
authorYannic <contact@yannic-bonenberger.com>2019-08-16T14·38+0000
committerDerek Mauro <761129+derekmauro@users.noreply.github.com>2019-08-16T14·38-0400
commit36910d3d7e9fccadd6603f232d0c4f54dcd47c7e (patch)
tree477a5d0a416e35eb922c5a0679db0ff2624e0aaa /absl/random
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 'absl/random')
-rw-r--r--absl/random/BUILD.bazel1
-rw-r--r--absl/random/internal/BUILD.bazel2
2 files changed, 3 insertions, 0 deletions
diff --git a/absl/random/BUILD.bazel b/absl/random/BUILD.bazel
index d09f0cb399ee..4e210e71d6c8 100644
--- a/absl/random/BUILD.bazel
+++ b/absl/random/BUILD.bazel
@@ -1,5 +1,6 @@
 # ABSL random-number generation libraries.
 
+load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library", "cc_test")
 load(
     "//absl:copts/configure_copts.bzl",
     "ABSL_DEFAULT_COPTS",
diff --git a/absl/random/internal/BUILD.bazel b/absl/random/internal/BUILD.bazel
index d9581d00e587..5e7c16f322a2 100644
--- a/absl/random/internal/BUILD.bazel
+++ b/absl/random/internal/BUILD.bazel
@@ -1,3 +1,5 @@
+load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library", "cc_test")
+
 # Internal-only implementation classes for Abseil Random
 load(
     "//absl:copts/configure_copts.bzl",