Skip to content

Commit 5f9c3b7

Browse files
thomasvlbrentleyjones
authored andcommitted
Remove swift.bzl, the granular targets should be used
RELNOTES: None PiperOrigin-RevId: 470010567 (cherry picked from commit 9fa3a7a) Signed-off-by: Brentley Jones <github@brentleyjones.com>
1 parent be8bc73 commit 5f9c3b7

File tree

2 files changed

+32
-120
lines changed

2 files changed

+32
-120
lines changed

swift/BUILD

Lines changed: 32 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,6 @@ bzl_library(
2626
],
2727
)
2828

29-
bzl_library(
30-
name = "repositories",
31-
srcs = ["repositories.bzl"],
32-
deps = [
33-
"//doc:bazel_tools_bzl",
34-
"//swift/internal:swift_autoconfiguration",
35-
],
36-
)
37-
3829
bzl_library(
3930
name = "module_name",
4031
srcs = ["module_name.bzl"],
@@ -53,24 +44,11 @@ bzl_library(
5344
)
5445

5546
bzl_library(
56-
name = "swift",
57-
srcs = ["swift.bzl"],
47+
name = "repositories",
48+
srcs = ["repositories.bzl"],
5849
deps = [
59-
":providers",
60-
":swift_binary",
61-
":swift_clang_module_aspect",
62-
":swift_common",
63-
":swift_compiler_plugin",
64-
":swift_extract_symbol_graph",
65-
":swift_feature_allowlist",
66-
":swift_import",
67-
":swift_interop_hint",
68-
":swift_library",
69-
":swift_library_group",
70-
":swift_module_alias",
71-
":swift_package_configuration",
72-
":swift_symbol_graph_aspect",
73-
":swift_test",
50+
"//doc:bazel_tools_bzl",
51+
"//swift/internal:swift_autoconfiguration",
7452
],
7553
)
7654

@@ -260,7 +238,34 @@ bzl_library(
260238
],
261239
)
262240

263-
# Consumed by Bazel integration tests.
241+
# Consumed by docs
242+
bzl_library(
243+
name = "swift",
244+
deps = [
245+
":extras",
246+
":extensions",
247+
":module_name",
248+
":providers",
249+
":repositories",
250+
":swift_binary",
251+
":swift_clang_module_aspect",
252+
":swift_common",
253+
":swift_compiler_plugin",
254+
":swift_extract_symbol_graph",
255+
":swift_feature_allowlist",
256+
":swift_import",
257+
":swift_interop_hint",
258+
":swift_library",
259+
":swift_library_group",
260+
":swift_module_alias",
261+
":swift_package_configuration",
262+
":swift_symbol_graph_aspect",
263+
":swift_test",
264+
],
265+
visibility = ["//doc:__pkg__"],
266+
)
267+
268+
# Consumed by Bazel integration tests
264269
filegroup(
265270
name = "for_bazel_tests",
266271
testonly = 1,

swift/swift.bzl

Lines changed: 0 additions & 93 deletions
This file was deleted.

0 commit comments

Comments
 (0)