Skip to content

Commit a8b3c96

Browse files
authored
Stop using repo_name and drop build_bazel_ prefix (#593)
1 parent bb05fe2 commit a8b3c96

29 files changed

Lines changed: 68 additions & 69 deletions

.github/generate-notes.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ This release is compatible with: TODO
1414
### MODULE.bazel Snippet
1515
1616
\`\`\`bzl
17-
bazel_dep(name = "apple_support", version = "$new_version", repo_name = "build_bazel_apple_support")
17+
bazel_dep(name = "apple_support", version = "$new_version")
1818
\`\`\`
1919
EOF

MODULE.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ module(
44
name = "apple_support",
55
bazel_compatibility = [">=7.4.0"],
66
compatibility_level = 1,
7-
repo_name = "build_bazel_apple_support",
87
)
98

109
bazel_dep(name = "bazel_features", version = "1.27.0")

configs/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ selects.config_setting_group(
1010
cpu
1111
for cpu in APPLE_PLATFORMS_CONSTRAINTS.keys()
1212
] + [
13-
"@build_bazel_apple_support//constraints:apple",
13+
"@apple_support//constraints:apple",
1414
],
1515
)
1616

crosstool/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
load("@build_bazel_apple_support//rules:apple_genrule.bzl", "apple_genrule")
1+
load("@apple_support//rules:apple_genrule.bzl", "apple_genrule")
22
load(":universal_exec_tool.bzl", "force_exec", "universal_exec_tool")
33

44
package(default_visibility = ["//visibility:public"])

crosstool/BUILD.toolchains

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
load("@build_bazel_apple_support//configs:platforms.bzl", "APPLE_PLATFORMS_CONSTRAINTS")
1+
load("@apple_support//configs:platforms.bzl", "APPLE_PLATFORMS_CONSTRAINTS")
22

33
_OSX_DEVELOPER_PLATFORM_CPUS = [
44
"arm64",

crosstool/BUILD.tpl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package(default_visibility = ["//visibility:public"])
22

33
load("@rules_cc//cc:defs.bzl", "cc_library", "cc_toolchain", "cc_toolchain_suite")
4-
load("@build_bazel_apple_support//configs:platforms.bzl", "APPLE_PLATFORMS_CONSTRAINTS")
4+
load("@apple_support//configs:platforms.bzl", "APPLE_PLATFORMS_CONSTRAINTS")
55
load(":cc_toolchain_config.bzl", "cc_toolchain_config")
66

77
_APPLE_ARCHS = APPLE_PLATFORMS_CONSTRAINTS.keys()
@@ -47,9 +47,9 @@ filegroup(
4747
filegroup(
4848
name = "tools",
4949
srcs = [
50-
"@build_bazel_apple_support//crosstool:exec_libtool",
51-
"@build_bazel_apple_support//crosstool:exec_wrapped_clang",
52-
"@build_bazel_apple_support//crosstool:exec_wrapped_clang_pp",
50+
"@apple_support//crosstool:exec_libtool",
51+
"@apple_support//crosstool:exec_wrapped_clang",
52+
"@apple_support//crosstool:exec_wrapped_clang_pp",
5353
":modulemap",
5454
],
5555
)
@@ -84,15 +84,15 @@ filegroup(
8484
cxx_builtin_include_directories = [
8585
%{cxx_builtin_include_directories}
8686
],
87-
libtool = "@build_bazel_apple_support//crosstool:exec_libtool",
87+
libtool = "@apple_support//crosstool:exec_libtool",
8888
tool_paths_overrides = {%{tool_paths_overrides}},
8989
c_flags = [%{c_flags}],
9090
conly_flags = [%{conly_flags}],
9191
cxx_flags = [%{cxx_flags}],
9292
link_flags = [%{link_flags}],
9393
module_map = ":modulemap",
94-
wrapped_clang = "@build_bazel_apple_support//crosstool:exec_wrapped_clang",
95-
wrapped_clang_pp = "@build_bazel_apple_support//crosstool:exec_wrapped_clang_pp",
94+
wrapped_clang = "@apple_support//crosstool:exec_wrapped_clang",
95+
wrapped_clang_pp = "@apple_support//crosstool:exec_wrapped_clang_pp",
9696
)
9797
for arch in _APPLE_ARCHS
9898
]

crosstool/cc_toolchain_config.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# limitations under the License.
1414
"""A C++ toolchain configuration rule for macOS."""
1515

16+
load("@apple_support//lib:apple_support.bzl", "apple_support")
1617
load("@bazel_features//:features.bzl", "bazel_features")
1718
load(
1819
"@bazel_tools//tools/cpp:cc_toolchain_config_lib.bzl",
@@ -30,7 +31,6 @@ load(
3031
"variable_with_value",
3132
"with_feature_set",
3233
)
33-
load("@build_bazel_apple_support//lib:apple_support.bzl", "apple_support")
3434
load("@rules_cc//cc:action_names.bzl", "ACTION_NAMES", "ACTION_NAME_GROUPS")
3535
load("@rules_cc//cc/common:cc_common.bzl", "cc_common")
3636
load("@rules_cc//cc/toolchains:cc_toolchain_config_info.bzl", "CcToolchainConfigInfo")

crosstool/osx_cc_configure.bzl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ def configure_osx_toolchain(repository_ctx):
162162
# https://github.com/bazelbuild/bazel/blob/ab71a1002c9c53a8061336e40f91204a2a32c38e/tools/cpp/lib_cc_configure.bzl#L17-L38
163163
# for more info
164164
xcode_locator = Label("@bazel_tools//tools/osx:xcode_locator.m")
165-
cc_toolchain_config = Label("@build_bazel_apple_support//crosstool:cc_toolchain_config.bzl")
166-
build_template = Label("@build_bazel_apple_support//crosstool:BUILD.tpl")
165+
cc_toolchain_config = Label("@apple_support//crosstool:cc_toolchain_config.bzl")
166+
build_template = Label("@apple_support//crosstool:BUILD.tpl")
167167

168168
xcode_toolchains = []
169169
xcodeloc_err = ""
@@ -211,9 +211,9 @@ def configure_osx_toolchain(repository_ctx):
211211
"%{cxx_builtin_include_directories}": "\n".join(escaped_cxx_include_directories),
212212
"%{cxx_flags}": _get_starlark_list(cxx_opts),
213213
"%{features}": "\n".join([' "{}",'.format(x) for x in features]),
214-
"%{layering_check_modulemap}": "\"@build_bazel_apple_support//crosstool:exec_layering_check_modulemap\"," if enable_layering_check else "",
214+
"%{layering_check_modulemap}": "\"@apple_support//crosstool:exec_layering_check_modulemap\"," if enable_layering_check else "",
215215
"%{link_flags}": _get_starlark_list(link_opts),
216-
"%{placeholder_modulemap}": "\"@build_bazel_apple_support//crosstool:module.modulemap\"" if enable_layering_check else "None",
216+
"%{placeholder_modulemap}": "\"@apple_support//crosstool:module.modulemap\"" if enable_layering_check else "None",
217217
"%{tool_paths_overrides}": ",\n ".join(
218218
['"%s": "%s"' % (k, v) for k, v in tool_paths.items()],
219219
),

crosstool/setup_internal.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def _apple_cc_autoconf_toolchains_impl(repository_ctx):
2525
repository_ctx.file(
2626
"BUILD",
2727
content = repository_ctx.read(
28-
Label("@build_bazel_apple_support//crosstool:BUILD.toolchains"),
28+
Label("@apple_support//crosstool:BUILD.toolchains"),
2929
),
3030
)
3131

crosstool/universal_exec_tool.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Rules for creating exec-configured universal tools for repository rules."""
22

3-
load("@build_bazel_apple_support//rules:apple_genrule.bzl", "apple_genrule")
3+
load("@apple_support//rules:apple_genrule.bzl", "apple_genrule")
44

55
def _force_exec_impl(ctx):
66
default_into = ctx.attr.target[DefaultInfo]

0 commit comments

Comments
 (0)