From 36651c7e4ad561f15d2b0a593a2b5ed44e365f78 Mon Sep 17 00:00:00 2001 From: Vinh Tran Date: Thu, 9 Nov 2023 20:10:03 +0000 Subject: [PATCH] Remove unused vars --- .../stdlibs.BUILD.bazel | 27 ------------------- .../toolchain/BUILD.bazel | 1 - 2 files changed, 28 deletions(-) diff --git a/examples/toolchain-to-rebuild-std/stdlibs.BUILD.bazel b/examples/toolchain-to-rebuild-std/stdlibs.BUILD.bazel index ddcef03894..cde087d177 100644 --- a/examples/toolchain-to-rebuild-std/stdlibs.BUILD.bazel +++ b/examples/toolchain-to-rebuild-std/stdlibs.BUILD.bazel @@ -4,17 +4,6 @@ package(default_visibility = ["//visibility:public"]) exports_files(["bin/*"]) -# Flags for vendored dependencies. -COMMON_INTERNAL_CRATE_RUSTC_FLAGS = [ - "--cap-lints=allow", - # Mix in some metadata to distinguish the rlibs of these private vendored - # crates from the rlibs of their public counterparts over at third_party/rust. - "-Cmetadata=rustc_internal", - # Ensure standard rust clients can't accidentally pull in the private crates. - # See https://rustc-dev-guide.rust-lang.org/building/bootstrapping.html#-z-force-unstable-if-unmarked. - "-Zforce-unstable-if-unmarked", -] - filegroup( name = "binaries", srcs = glob([ @@ -24,22 +13,6 @@ filegroup( ]), ) -platform( - name = "aarch64-apple-darwin", - constraint_values = [ - "@platforms//os:osx", - "@platforms//cpu:aarch64", - ], -) - -platform( - name = "wasm32-wasi", - constraint_values = [ - "@platforms//os:wasi", - "@platforms//cpu:wasm32", - ], -) - filegroup( name = "stdlib_sources", srcs = [ diff --git a/examples/toolchain-to-rebuild-std/toolchain/BUILD.bazel b/examples/toolchain-to-rebuild-std/toolchain/BUILD.bazel index 3c77fa9ca9..df78974803 100644 --- a/examples/toolchain-to-rebuild-std/toolchain/BUILD.bazel +++ b/examples/toolchain-to-rebuild-std/toolchain/BUILD.bazel @@ -14,7 +14,6 @@ rust_stdlib_filegroup( srcs = [":sysroot_with_stdlibs"], ) -# bazel build //toolchain:sysroot_with_stdlibs --platforms=//:aarch64-apple-darwin toolchain_sysroot( name = "sysroot_with_stdlibs", srcs = [":stdlibs"],