Skip to content

3.0.2

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 10 Jun 20:10
· 3 commits to master since this release
947fdac

Breaking changes

Fixed

Added

Changed

  • Update doc/README.md by @brentleyjones in #1428
  • Change swift_library alwayslink default to True by @brentleyjones in #1398
  • Warn instead of fail when swiftc not found on Linux by @brentleyjones in #1433
  • Prefer Swift toolchain clang over system clang by @brentleyjones in #1434
  • Stop trying to extract symbol graphs from actions that don’t compile Swift or Objective-C code by @brentleyjones in #1435
  • Allow swift_cross_import_overlay to specify a disambiguating explicit module name for the declaring and/or bystanding module by @brentleyjones in #1417
  • Put the swift_overlay's deps SwiftInfos into the transitive SwiftInfos of the propagated SwiftInfo instead of the direct SwiftInfos (which causes them to be merged with the overlay module itself) by @brentleyjones in #1438
  • Don't drop compilation contexts for private_deps when compiling the target that imports them by @brentleyjones in #1437
  • Update docs to say that a source file should only be in a single swift_* target, and a swift_overlay should only be referenced by a single other target's aspect_hints by @brentleyjones in #1439
  • Set alwayslink on the clang target of mixed_language_library as well by @brentleyjones in #1451
  • Stop using config.string(allow_multiple = True) by @EdSchouten in #1452
  • Make sure that the path to the generated header in the generated module map is workspace-relative when the feature configuration asks for it by @brentleyjones in #1442
  • Don't drop swift_overlay linking contexts when an overlay depends on another library that has an overlay by @brentleyjones in #1440
  • Apply -enable-bare-slash-regex action config to SWIFT_ACTION_DERIVE_F… by @jschear in #1464
  • Map const-values in output file map for incremental by @vikage in #1471
  • Include swift_proto_library attrs in compilation by @sebastianv1 in #1473
  • Mark non_module_deps extension as reproducible by @cerisier in #1481
  • Print a warning, instead of an error, when not finding swiftc.exe by @brentleyjones in #1483
  • Create fewer Xcode toolchains by @brentleyjones in #1487
  • Always create all toolchains by @brentleyjones in #1488
  • Only warn about missing swiftc on matching host platform by @brentleyjones in #1490
  • Support swift plugins in mixed_language_library by @qyang-nj in #1493
  • Deduplicate plugin arguments by @qyang-nj in #1495
  • Update swift.suppress_warnings comment by @mattrobmattrob in #1499
  • Use exec_group for SWIFT_ACTION_DERIVE_FILES and SWIFT_ACTION_DUMP_AST by @brentleyjones in #1510
  • Only pass the strict Obj-C include paths from direct dependencies to compilation actions by @luispadron in #1516
  • Use a different attribute than features on toolchain rules to specify which features should be enabled/disabled by default for all targets built with that toolchain by @luispadron in #1519
  • Use a new provider to wrap symbol graph extraction used for test discovery by @luispadron in #1521
  • Ensure that swift_synthesize_interface_aspect generates unique outputs by @luispadron in #1526
  • Remove prints when toolchain is skipped by @keith in #1535

Removed

  • Remove apple_common.Objc provider usage related to linking now that the Apple linking logic in Bazel gets everything from CcInfo by @brentleyjones in #1383
  • Remove implicit dependencies of _allowlist_function_transition in third_party by @brentleyjones in #1402
  • Remove unnecessary SwiftBinaryInfo required provider from plugins attribute by @brentleyjones in #1445
  • Remove redundant code in swift_import by @brentleyjones in #1446

New Contributors

Full Changelog: 2.8.2...3.0.2

This release is compatible with Bazel 7.x LTS, 8.x LTS, and 9.x rolling releases.

MODULE.bazel Snippet

bazel_dep(name = "rules_swift", version = "3.0.1", repo_name = "build_bazel_rules_swift")

Workspace Snippet

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "build_bazel_rules_swift",
    sha256 = "ae6673d27024914fa89e32fd1369e9563fb8ede463feac703aaec1ba6ca0358c",
    url = "https://github.com/bazelbuild/rules_swift/releases/download/3.0.1/rules_swift.3.0.1.tar.gz",
)

load(
    "@build_bazel_rules_swift//swift:repositories.bzl",
    "swift_rules_dependencies",
)

swift_rules_dependencies()

load(
    "@build_bazel_rules_swift//swift:extras.bzl",
    "swift_rules_extra_dependencies",
)

swift_rules_extra_dependencies()