Skip to content

Commit 277e0a0

Browse files
committed
Remove bazelbuild/rules_cc dependency
1 parent 40dfd4b commit 277e0a0

File tree

5 files changed

+0
-25
lines changed

5 files changed

+0
-25
lines changed

BUILD.bazel

-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@
3030
#
3131
# Bazel Build for Google C++ Testing Framework(Google Test)
3232

33-
load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
34-
3533
package(default_visibility = ["//visibility:public"])
3634

3735
licenses(["notice"])

WORKSPACE

-7
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,6 @@ http_archive(
99
urls = ["https://github.com/abseil/abseil-cpp/archive/7971fb358ae376e016d2d4fc9327aad95659b25e.zip"], # 2021-05-20T02:59:16Z
1010
)
1111

12-
http_archive(
13-
name = "rules_cc",
14-
sha256 = "1e19e9a3bc3d4ee91d7fcad00653485ee6c798efbbf9588d40b34cbfbded143d",
15-
strip_prefix = "rules_cc-68cb652a71e7e7e2858c50593e5a9e3b94e5b9a9",
16-
urls = ["https://github.com/bazelbuild/rules_cc/archive/68cb652a71e7e7e2858c50593e5a9e3b94e5b9a9.zip"], # 2021-05-14T14:51:14Z
17-
)
18-
1912
http_archive(
2013
name = "rules_python",
2114
sha256 = "98b3c592faea9636ac8444bfd9de7f3fb4c60590932d6e6ac5946e3f8dbd5ff6",

docs/quickstart-bazel.md

-14
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,6 @@ as a ZIP archive from GitHub. In the above example,
6262
GoogleTest version to use; we recommend updating the hash often to point to the
6363
latest version.
6464

65-
Bazel also needs a dependency on the
66-
[`rules_cc` repository](https://github.com/bazelbuild/rules_cc) to build C++
67-
code, so add the following to the `WORKSPACE` file:
68-
69-
```
70-
http_archive(
71-
name = "rules_cc",
72-
urls = ["https://github.com/bazelbuild/rules_cc/archive/40548a2974f1aea06215272d9c2b47a14a24e556.zip"],
73-
strip_prefix = "rules_cc-40548a2974f1aea06215272d9c2b47a14a24e556",
74-
)
75-
```
76-
7765
Now you're ready to build C++ code that uses GoogleTest.
7866

7967
## Create and run a binary
@@ -104,8 +92,6 @@ To build the code, create a file named `BUILD` in the same directory with the
10492
following contents:
10593
10694
```
107-
load("@rules_cc//cc:defs.bzl", "cc_test")
108-
10995
cc_test(
11096
name = "hello_test",
11197
size = "small",

googlemock/test/BUILD.bazel

-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
#
3131
# Bazel Build for Google C++ Testing Framework(Google Test)-googlemock
3232

33-
load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_test")
3433
load("@rules_python//python:defs.bzl", "py_library", "py_test")
3534

3635
licenses(["notice"])

googletest/test/BUILD.bazel

-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
#
3131
# Bazel BUILD for The Google C++ Testing Framework (Google Test)
3232

33-
load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_test")
3433
load("@rules_python//python:defs.bzl", "py_library", "py_test")
3534

3635
licenses(["notice"])

0 commit comments

Comments
 (0)