Internal change
PiperOrigin-RevId: 339925655
Change-Id: Icde35bf6acb72a382e0253fcf9fb5a10d80a5feb
diff --git a/BUILD b/BUILD
index cdaf96f..5e0fc3a 100644
--- a/BUILD
+++ b/BUILD
@@ -1,5 +1,3 @@
-load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
-
package(default_visibility = ["//visibility:public"])
licenses(["notice"])
@@ -16,15 +14,3 @@
],
visibility = ["@//distro:__pkg__"],
)
-
-bzl_library(
- name = "internal_deps_bzl",
- srcs = ["internal_deps.bzl"],
- visibility = ["//visibility:private"],
-)
-
-bzl_library(
- name = "internal_setup_bzl",
- srcs = ["internal_setup.bzl"],
- visibility = ["//visibility:private"],
-)
diff --git a/examples/BUILD b/examples/BUILD
index c770074..0bfcd24 100644
--- a/examples/BUILD
+++ b/examples/BUILD
@@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
load("@bazel_skylib//rules:common_settings.bzl", "bool_flag")
# A collection of examples showing the usage of rules_cc
@@ -29,9 +28,3 @@
build_setting_default = False,
visibility = ["//visibility:public"],
)
-
-bzl_library(
- name = "experimental_cc_shared_library_bzl",
- srcs = ["experimental_cc_shared_library.bzl"],
- visibility = ["//visibility:private"],
-)
diff --git a/examples/my_c_archive/BUILD b/examples/my_c_archive/BUILD
index 4484684..59bcd56 100644
--- a/examples/my_c_archive/BUILD
+++ b/examples/my_c_archive/BUILD
@@ -14,7 +14,6 @@
# Example showing how to create a custom Starlark rule that rules_cc can depend on
-load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library")
load("//examples/my_c_archive:my_c_archive.bzl", "my_c_archive")
load("//examples/my_c_compile:my_c_compile.bzl", "my_c_compile")
@@ -42,9 +41,3 @@
name = "bar",
srcs = ["bar.c"],
)
-
-bzl_library(
- name = "my_c_archive_bzl",
- srcs = ["my_c_archive.bzl"],
- visibility = ["//visibility:private"],
-)
diff --git a/examples/my_c_compile/BUILD b/examples/my_c_compile/BUILD
index b045509..efcabf4 100644
--- a/examples/my_c_compile/BUILD
+++ b/examples/my_c_compile/BUILD
@@ -1,4 +1,3 @@
-load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
load("//examples/my_c_compile:my_c_compile.bzl", "my_c_compile")
# Copyright 2019 The Bazel Authors. All rights reserved.
@@ -22,9 +21,3 @@
name = "foo",
src = "foo.c",
)
-
-bzl_library(
- name = "my_c_compile_bzl",
- srcs = ["my_c_compile.bzl"],
- visibility = ["//visibility:private"],
-)
diff --git a/examples/test_cc_shared_library/BUILD b/examples/test_cc_shared_library/BUILD
index 5f3d03b..027717c 100644
--- a/examples/test_cc_shared_library/BUILD
+++ b/examples/test_cc_shared_library/BUILD
@@ -1,4 +1,3 @@
-load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
load("//cc:defs.bzl", "cc_binary", "cc_library", "cc_test")
load("//examples:experimental_cc_shared_library.bzl", "LINKABLE_MORE_THAN_ONCE", "cc_shared_library")
load(":starlark_tests.bzl", "additional_inputs_test", "build_failure_test", "linking_suffix_test", "paths_test")
@@ -196,9 +195,3 @@
message = "can only list targets that are in the same package or a sub-package",
target_under_test = "//examples/test_cc_shared_library/failing_targets:permissions_fail",
)
-
-bzl_library(
- name = "test_cc_shared_library_starlark_tests_bzl",
- srcs = ["starlark_tests.bzl"],
- visibility = ["//visibility:private"],
-)
diff --git a/examples/write_cc_toolchain_cpu/BUILD b/examples/write_cc_toolchain_cpu/BUILD
index c9ee72f..fcee153 100644
--- a/examples/write_cc_toolchain_cpu/BUILD
+++ b/examples/write_cc_toolchain_cpu/BUILD
@@ -1,4 +1,3 @@
-load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
load("//examples/write_cc_toolchain_cpu:write_cc_toolchain_cpu.bzl", "write_cc_toolchain_cpu")
# Copyright 2019 The Bazel Authors. All rights reserved.
@@ -19,9 +18,3 @@
licenses(["notice"])
write_cc_toolchain_cpu(name = "write_me_the_cpu")
-
-bzl_library(
- name = "write_cc_toolchain_cpu_bzl",
- srcs = ["write_cc_toolchain_cpu.bzl"],
- visibility = ["//visibility:private"],
-)
diff --git a/tests/load_from_macro/BUILD b/tests/load_from_macro/BUILD
index 93b902a..7084344 100644
--- a/tests/load_from_macro/BUILD
+++ b/tests/load_from_macro/BUILD
@@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
load("//cc:defs.bzl", "cc_library")
load(":tags.bzl", "TAGS")
@@ -23,9 +22,3 @@
srcs = ["foo.cc"],
tags = TAGS,
)
-
-bzl_library(
- name = "tags_bzl",
- srcs = ["tags.bzl"],
- visibility = ["//visibility:private"],
-)
diff --git a/tools/migration/BUILD b/tools/migration/BUILD
index 443299b..0cef4ae 100644
--- a/tools/migration/BUILD
+++ b/tools/migration/BUILD
@@ -12,8 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
-
# Go rules
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test")
@@ -133,15 +131,3 @@
)
exports_files(["ctoolchain_compare.bzl"])
-
-bzl_library(
- name = "ctoolchain_compare_bzl",
- srcs = ["ctoolchain_compare.bzl"],
- visibility = ["//visibility:private"],
-)
-
-bzl_library(
- name = "cc_toolchain_config_comparator_bzl",
- srcs = ["cc_toolchain_config_comparator.bzl"],
- visibility = ["//visibility:private"],
-)