alchemist: Remove the cross-*/gcc package from the cross toolchain layer
All the packages that depend on cross-XXX/gcc now explicitly declare the
dependency. This change should speed up the CQ by about 10 minutes.
BUG=b:301474223
TEST=CQ
Cq-Depend: chromium:5288768, chromium:5282687
Force-Relevant-Builds: amd64-generic-bazel-cq
Change-Id: Ie9ec32e4dea858cb070879671588671a704c238f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/bazel/+/5293956
Tested-by: Raul Rangel <rrangel@chromium.org>
Commit-Queue: Raul Rangel <rrangel@chromium.org>
Reviewed-by: Tim Bain <tbain@google.com>
diff --git a/portage/bin/alchemist/src/bin/alchemist/generate_repo/common.rs b/portage/bin/alchemist/src/bin/alchemist/generate_repo/common.rs
index e8851ce..345dddb 100644
--- a/portage/bin/alchemist/src/bin/alchemist/generate_repo/common.rs
+++ b/portage/bin/alchemist/src/bin/alchemist/generate_repo/common.rs
@@ -70,8 +70,6 @@
/// `cross-$CHOST`.
pub static TOOLCHAIN_PACKAGE_NAMES: &[&str] = &[
"binutils",
- // Only used by the packages that call `cros_use_gcc`.
- "gcc",
// compiler-rt is only required for non-x86 toolchains. It's handled
// as a special case in the generator code.
"compiler-rt",
diff --git a/portage/bin/alchemist/src/bin/alchemist/testdata/golden/internal/sdk/stage2/target/board/BUILD.golden.bazel b/portage/bin/alchemist/src/bin/alchemist/testdata/golden/internal/sdk/stage2/target/board/BUILD.golden.bazel
index 6be0ec7..ee9f07a 100644
--- a/portage/bin/alchemist/src/bin/alchemist/testdata/golden/internal/sdk/stage2/target/board/BUILD.golden.bazel
+++ b/portage/bin/alchemist/src/bin/alchemist/testdata/golden/internal/sdk/stage2/target/board/BUILD.golden.bazel
@@ -19,7 +19,6 @@
target_deps = [
"//internal/packages/stage2/host/chromiumos/sys-devel/crossdev:20211027",
"//internal/packages/stage2/host/toolchains/cross-x86_64-cros-linux-gnu/binutils:2.39",
- "//internal/packages/stage2/host/toolchains/cross-x86_64-cros-linux-gnu/gcc:10.2.0",
],
visibility = ["//visibility:private"],
)