rp2: Use Pigweed's compiler identifier configs

Switches to Pigweed's more granular compiler identifier configs rather
than using the one from rules_cc.

Change-Id: I4b1606ca0e7870d029d968c3dc382363692dc243
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/quickstart/bazel/+/241052
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ted Pudlik <tpudlik@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Pigweed-Auto-Submit: Armando Montanez <amontanez@google.com>
diff --git a/MODULE.bazel b/MODULE.bazel
index 64cfe87..dffcdda 100644
--- a/MODULE.bazel
+++ b/MODULE.bazel
@@ -22,7 +22,6 @@
 bazel_dep(name = "pigweed")
 bazel_dep(name = "platforms", version = "0.0.10")
 bazel_dep(name = "pw_toolchain")
-bazel_dep(name = "rules_cc", version = "0.0.10")
 bazel_dep(name = "rules_platform", version = "0.1.0")
 bazel_dep(name = "rules_python", version = "0.34.0")
 
diff --git a/targets/rp2/BUILD.bazel b/targets/rp2/BUILD.bazel
index 982595d..73ed7e5 100644
--- a/targets/rp2/BUILD.bazel
+++ b/targets/rp2/BUILD.bazel
@@ -72,7 +72,7 @@
         "@pico-sdk//src/rp2_common/pico_stdlib:pico_stdlib",
         "@pigweed//pw_tokenizer:linker_script",
     ] + select({
-        "@rules_cc//cc/compiler:clang": [
+        "@pigweed//pw_toolchain/cc/current_toolchain:compiler_is_clang": [
             "@pigweed//pw_libcxx",
         ],
         "//conditions:default": [],