Skip to content

Commit 9b773b9

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 <[email protected]>
1 parent 34e7b28 commit 9b773b9

File tree

2 files changed

+16
-104
lines changed

2 files changed

+16
-104
lines changed

swift/BUILD

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

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

47+
bzl_library(
48+
name = "repositories",
49+
srcs = ["repositories.bzl"],
50+
deps = [
51+
"//doc:bazel_tools_bzl",
52+
"//swift/internal:swift_autoconfiguration",
53+
],
54+
)
55+
5656
bzl_library(
5757
name = "swift_binary",
5858
srcs = ["swift_binary.bzl"],
@@ -247,11 +247,15 @@ bzl_library(
247247
],
248248
)
249249

250+
# Consumed by docs
250251
bzl_library(
251252
name = "swift",
252-
srcs = ["swift.bzl"],
253253
deps = [
254+
":extensions",
255+
":extras",
256+
":module_name",
254257
":providers",
258+
":repositories",
255259
":swift_binary",
256260
":swift_clang_module_aspect",
257261
":swift_common",
@@ -267,9 +271,10 @@ bzl_library(
267271
":swift_symbol_graph_aspect",
268272
":swift_test",
269273
],
274+
visibility = ["//doc:__pkg__"],
270275
)
271276

272-
# Consumed by Bazel integration tests.
277+
# Consumed by Bazel integration tests
273278
filegroup(
274279
name = "for_bazel_tests",
275280
testonly = 1,

swift/swift.bzl

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

0 commit comments

Comments
 (0)