diff --git a/bazel/external/rules_cc.patch b/bazel/external/rules_cc.patch deleted file mode 100644 index 057545c920f3e..0000000000000 --- a/bazel/external/rules_cc.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/cc/private/toolchain/unix_cc_toolchain_config.bzl b/cc/private/toolchain/unix_cc_toolchain_config.bzl -index c3cf3ba..d207bbd 100644 ---- a/cc/private/toolchain/unix_cc_toolchain_config.bzl -+++ b/cc/private/toolchain/unix_cc_toolchain_config.bzl -@@ -313,7 +313,7 @@ def _impl(ctx): - ], - flag_groups = [ - flag_group( -- flags = ["-gsplit-dwarf"], -+ flags = ["-gsplit-dwarf", "-g"], - expand_if_available = "per_object_debug_info_file", - ), - ], diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index c642f6e37590b..ce8283d3777ee 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -232,11 +232,7 @@ def envoy_dependencies(skip_targets = []): patch_args = ["-p1"], patches = ["@envoy//bazel/external:envoy_build_tools.patch"], ) - external_http_archive( - "rules_cc", - patch_args = ["-p1"], - patches = ["@envoy//bazel/external:rules_cc.patch"], - ) + external_http_archive("rules_cc") external_http_archive("rules_pkg") # Unconditional, since we use this only for compiler-agnostic fuzzing utils. diff --git a/bazel/repository_locations.bzl b/bazel/repository_locations.bzl index a30f2b0b64219..c4f1c400cf4eb 100644 --- a/bazel/repository_locations.bzl +++ b/bazel/repository_locations.bzl @@ -667,12 +667,10 @@ REPOSITORY_LOCATIONS_SPEC = dict( project_name = "C++ rules for Bazel", project_desc = "Bazel rules for the C++ language", project_url = "https://github.com/bazelbuild/rules_cc", - # TODO(lizan): pin to a point releases when there's a released version. - version = "dd2758b96dc8f9f4add81eaa4154b7e3d8be6873", - sha256 = "67571de4070cff615f7232281d8b12d8400976d21c19d8274386ab02799269fb", - strip_prefix = "rules_cc-{version}", - urls = ["https://github.com/bazelbuild/rules_cc/archive/{version}.tar.gz"], - release_date = "2021-09-17", + version = "0.0.1", + sha256 = "4dccbfd22c0def164c8f47458bd50e0c7148f3d92002cdb459c2a96a68498241", + urls = ["https://github.com/bazelbuild/rules_cc/releases/download/{version}/rules_cc-{version}.tar.gz"], + release_date = "2021-10-07", use_category = ["build"], ), rules_foreign_cc = dict(