From 3e2b90483b23b982719b74d47a701858090f51e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dino=20Radakovi=C4=87?= Date: Thu, 14 Oct 2021 16:39:07 -0400 Subject: [PATCH] Remove bazelbuild/rules_cc dependency (#203) * Remove bazelbuild/rules_cc dependency The Bazel team recommends using native rules nowadays: https://github.com/bazelbuild/rules_cc/issues/91#issuecomment-756673529 Abseil stopped depending on `rules_cc` in https://github.com/abseil/abseil-cpp/pull/1038/commits/b2387f0b2326efc3fac804426e335a91085839d1. --- BUILD | 2 -- WORKSPACE | 11 ----------- 2 files changed, 13 deletions(-) diff --git a/BUILD b/BUILD index 98245ec..cd0ca3e 100644 --- a/BUILD +++ b/BUILD @@ -12,8 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library", "cc_test") - licenses(["notice"]) config_setting( diff --git a/WORKSPACE b/WORKSPACE index 96b295b..16d3f2e 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -18,17 +18,6 @@ http_archive( urls = ["https://github.com/google/benchmark/archive/v1.5.5.zip"], ) -# C++ rules for Bazel. -http_archive( - name = "rules_cc", - sha256 = "fa42eade3cad9190c2a6286a6213f07f1a83d26d9f082d56f526d014c6ea7444", - strip_prefix = "rules_cc-02becfef8bc97bda4f9bb64e153f1b0671aec4ba", - urls = [ - "https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/02becfef8bc97bda4f9bb64e153f1b0671aec4ba.zip", - "https://github.com/bazelbuild/rules_cc/archive/02becfef8bc97bda4f9bb64e153f1b0671aec4ba.zip", - ], -) - # Bazel platform rules. http_archive( name = "platforms",