bazelbuild / rules_swift

Bazel rules to build Swift on Apple and Linux platforms
Apache License 2.0
309 stars 133 forks source link

Introduce the `swift_common.get_toolchain` helper function #1226

Closed brentleyjones closed 2 months ago

brentleyjones commented 2 months ago

This is change 1 of N to migrate the Swift build rules to use new-style Bazel toolchains. This change:

Since ctx.toolchains isn't defined yet, the second change is a no-op but it simplifies future parts of the migration.

PiperOrigin-RevId: 439638938 (cherry picked from commit 884e54426535acb820c746ccff074546b5796402)