Skip to content

Commit 9e7c7c4

Browse files
Googlerswiple-rules-gardener
authored andcommitted
No public description
PiperOrigin-RevId: 738130612
1 parent 59000d5 commit 9e7c7c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swift/internal/toolchain_utils.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def get_swift_toolchain(
5555
if group and toolchain_type in group.toolchains:
5656
return group.toolchains[toolchain_type].swift_toolchain
5757

58-
if toolchain_type in ctx.toolchains:
58+
if toolchain_type in ctx.toolchains and ctx.toolchains[toolchain_type]:
5959
return ctx.toolchains[toolchain_type].swift_toolchain
6060

6161
# TODO(b/205018581): Delete this code path when migration to the new

0 commit comments

Comments
 (0)