Skip to content

Commit

Permalink
Remove unnecessary and outdated rules_cc dependency
Browse files Browse the repository at this point in the history
Fixes #475
  • Loading branch information
cpsauer committed Nov 14, 2023
1 parent 9c9beee commit a9ade46
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 15 deletions.
1 change: 0 additions & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ bazel_dep(name = "platforms", version = "0.0.4")
# Build-only / test-only dependencies
bazel_dep(name = "stardoc", version = "0.5.6", dev_dependency = True, repo_name = "io_bazel_stardoc")
bazel_dep(name = "rules_pkg", version = "0.9.1", dev_dependency = True)
bazel_dep(name = "rules_cc", version = "0.0.2", dev_dependency = True)

# Needed for bazelci and for building distribution tarballs.
# If using an unreleased version of bazel_skylib via git_override, apply
Expand Down
10 changes: 0 additions & 10 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,6 @@ load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")

rules_pkg_dependencies()

maybe(
name = "rules_cc",
repo_rule = http_archive,
sha256 = "4dccbfd22c0def164c8f47458bd50e0c7148f3d92002cdb459c2a96a68498241",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_cc/releases/download/0.0.1/rules_cc-0.0.1.tar.gz",
"https://github.com/bazelbuild/rules_cc/releases/download/0.0.1/rules_cc-0.0.1.tar.gz",
],
)

load("//lib:unittest.bzl", "register_unittest_toolchains")

register_unittest_toolchains()
3 changes: 1 addition & 2 deletions tests/build_test_tests.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

"""Unit tests for build_test.bzl."""

load("@rules_cc//cc:defs.bzl", "cc_library")
load("//rules:build_test.bzl", "build_test")

# buildifier: disable=unnamed-macro
Expand All @@ -31,7 +30,7 @@ def build_test_test_suite():
)

# Use it in a non-test target
cc_library(
native.cc_library(
name = "build_test__build_target",
srcs = [":build_test__make_src"],
)
Expand Down
1 change: 0 additions & 1 deletion tests/native_binary/BUILD
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
load("@rules_cc//cc:defs.bzl", "cc_binary")
load("//rules:copy_file.bzl", "copy_file")
load("//rules:native_binary.bzl", "native_binary", "native_test")

Expand Down
1 change: 0 additions & 1 deletion tests/run_binary/BUILD
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
load("@rules_cc//cc:defs.bzl", "cc_binary")
load("//rules:diff_test.bzl", "diff_test")
load("//rules:run_binary.bzl", "run_binary")
load("//rules:write_file.bzl", "write_file")
Expand Down

0 comments on commit a9ade46

Please sign in to comment.