Skip to content

Commit

Permalink
Update rules_swift to use the toolchain transition.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Googler authored and keith committed Oct 8, 2020
1 parent 9d472c1 commit abc377e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions swift/internal/swift_toolchain.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -275,5 +275,6 @@ for incremental compilation using a persistent mode.
doc = "Represents a Swift compiler toolchain.",
fragments = ["swift"],
toolchains = ["@bazel_tools//tools/cpp:toolchain_type"],
incompatible_use_toolchain_transition = True,
implementation = _swift_toolchain_impl,
)
1 change: 1 addition & 0 deletions swift/internal/xcode_swift_toolchain.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -692,5 +692,6 @@ for incremental compilation using a persistent mode.
"swift",
],
toolchains = ["@bazel_tools//tools/cpp:toolchain_type"],
incompatible_use_toolchain_transition = True,
implementation = _xcode_swift_toolchain_impl,
)

0 comments on commit abc377e

Please sign in to comment.