Skip to content

Commit f0970b9

Browse files
Googlerkeith
authored andcommitted
Update rules_swift to use the toolchain transition.
This is phase 2 of of the switch to toolchain transitions. See bazelbuild/bazel#11584 for details. This shouldn't be merged into rules_swift's master branch until https://cs.opensource.google/bazel/bazel/+/58fdf63d81cc71f0315918b111fc56f4c039f1a5 is in a Bazel release (which should be 3.7, bazelbuild/bazel#12188). PiperOrigin-RevId: 334610489
1 parent 5b738aa commit f0970b9

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

swift/internal/swift_toolchain.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,5 +275,6 @@ for incremental compilation using a persistent mode.
275275
doc = "Represents a Swift compiler toolchain.",
276276
fragments = ["swift"],
277277
toolchains = ["@bazel_tools//tools/cpp:toolchain_type"],
278+
incompatible_use_toolchain_transition = True,
278279
implementation = _swift_toolchain_impl,
279280
)

swift/internal/xcode_swift_toolchain.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -692,5 +692,6 @@ for incremental compilation using a persistent mode.
692692
"swift",
693693
],
694694
toolchains = ["@bazel_tools//tools/cpp:toolchain_type"],
695+
incompatible_use_toolchain_transition = True,
695696
implementation = _xcode_swift_toolchain_impl,
696697
)

0 commit comments

Comments
 (0)