Skip to content

Commit 196eaf9

Browse files
committed
Fix SWIFT_TOOLCHAIN_TYPE to work with Bzlmod + AEG
Use a label to it resolves correctly regardless of the repo that references it. Signed-off-by: Brentley Jones <github@brentleyjones.com>
1 parent 3dfbf33 commit 196eaf9

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
@@ -14,7 +14,7 @@
1414

1515
"""Helpers used to depend on and access the Swift toolchain."""
1616

17-
SWIFT_TOOLCHAIN_TYPE = "@build_bazel_rules_swift//toolchains:toolchain_type"
17+
SWIFT_TOOLCHAIN_TYPE = Label("//toolchains:toolchain_type")
1818

1919
def get_swift_toolchain(
2020
ctx,

0 commit comments

Comments
 (0)