rules_swift
rules_swift copied to clipboard
Bazel rules to build Swift on Apple and Linux platforms
Needed to support Bazel HEAD. This changes the generated docs to include load statements with `@rules_swift`. As part of rules_swift 3.0 we can change all references to the new form...
Rules are not required to have an implicit dependencies on the transition allowlist since Bazel knows where the file is. PiperOrigin-RevId: 610831569 (cherry picked from commit 589e42ce5c96030ee0970d3d59a6a2ce03362fde)
This also changes the default for the `swift_common.create_linking_context_from_compilation_outputs` api. SwiftPM works by linking all the .o files, and how .swift sources map to .o files can be dependent on the...
CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4198#01928934-47ee-4c84-9851-b07d174a3bbb Platform: Ubuntu Logs: ``` ERROR: Traceback (most recent call last): File "/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/8b36565493a31e266346114e39534731/external/protobuf+/src/google/protobuf/BUILD.bazel", line 185, column 15, in staleness_test( File "/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/8b36565493a31e266346114e39534731/external/protobuf+/upb/cmake/build_defs.bzl", line 49, column 11, in staleness_test native.py_test( Error:...
There are still a couple uses in `swift_clang_module_aspect` unrelated to linking that will be cleaned up separately. PiperOrigin-RevId: 503167994 (cherry picked from commit 40e1e63922e4ae71c21128bcc3525454169659bf) Cherry-pick notes: Also removes left over...
Was originally intended to be like `alias` and just used for migration, but is easily misused to merge/reexport targets, which in turns causes problems for indexing, automation, etc. that try...
This was only present to support Apple framework rules, but its design was flawed, so they no longer use it. Library evolution shouldn't be enabled for entire dependency subgraphs; authors...
This adds support for the new swift-testing library. Presently, test suites that contain swift-testing will output additional test information in addition to the standard XCTest output, which is always written....
PiperOrigin-RevId: 559415879 (cherry picked from commit c7cf7c3c428e719b2d7ade197eb56a618cf09328) Cherry-pick notes: Other rulesets will need to fully migrate to using toolchains, and `swift_common.get_swift_toolchain` in particular, with this change.
## Description Despite intention of new `swift_proto_library` to behave like regular `swift_library` by [inheriting its attributes](https://github.com/bazelbuild/rules_swift/blob/bbe6fbe2c7bb32b1305df4fb6c757720f5cbd11a/proto/swift_proto_library.bzl#L241), doesn't allow to add additional `srcs`. ## Example ```diff diff --git a/examples/xplatform/proto_files/BUILD b/examples/xplatform/proto_files/BUILD index...