Skip to content

Commit 9a4bcc0

Browse files
allevatoswiple-rules-gardener
authored andcommitted
Internal change.
PiperOrigin-RevId: 662500535
1 parent 2b0e35f commit 9a4bcc0

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

swift/swift_library.bzl

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@ def _swift_library_impl(ctx):
137137
)
138138
copts.extend(module_copts)
139139

140+
deps = ctx.attr.deps
141+
private_deps = ctx.attr.private_deps
142+
_check_deps_are_disjoint(ctx.label, deps, private_deps)
143+
140144
extra_features = []
141145

142146
if ctx.attr.library_evolution:
@@ -155,10 +159,6 @@ def _swift_library_impl(ctx):
155159
unsupported_features = ctx.disabled_features,
156160
)
157161

158-
deps = ctx.attr.deps
159-
private_deps = ctx.attr.private_deps
160-
_check_deps_are_disjoint(ctx.label, deps, private_deps)
161-
162162
swift_infos = get_providers(deps, SwiftInfo)
163163
private_swift_infos = get_providers(private_deps, SwiftInfo)
164164

@@ -291,7 +291,9 @@ dependent for linking, but artifacts/flags required for compilation (such as
291291
doc = """\
292292
Compiles and links Swift code into a static library and Swift module.
293293
""",
294-
fragments = ["cpp"],
294+
fragments = [
295+
"cpp",
296+
],
295297
implementation = _swift_library_impl,
296298
toolchains = use_swift_toolchain(),
297299
)

0 commit comments

Comments
 (0)