targets/rp2: Use Pigweed's compiler identifier config

Uses Pigweed's more granular compiler identifier config rather than
rules_cc's.

Change-Id: I8deca8c2691ac6ac91f09dabd14646836f8a9ecd
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/showcase/sense/+/241037
Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com>
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
Pigweed-Auto-Submit: Armando Montanez <amontanez@google.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Reviewed-by: Ted Pudlik <tpudlik@google.com>
diff --git a/MODULE.bazel b/MODULE.bazel
index 6f8337a..09635b1 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.35.0")
 
diff --git a/targets/rp2/BUILD.bazel b/targets/rp2/BUILD.bazel
index e11c27e..77ba15f 100644
--- a/targets/rp2/BUILD.bazel
+++ b/targets/rp2/BUILD.bazel
@@ -74,7 +74,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": [],