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 swiple-rules-gardener committed Sep 30, 2020
1 parent 639ecfa commit 9b9a097
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 @@ -274,5 +274,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 @@ -691,5 +691,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,
)

1 comment on commit 9b9a097

@keith
Copy link
Member

@keith keith commented on 9b9a097 Sep 30, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.