Releases: bazelbuild/rules_swift
3.5.0
What's Changed
- Update protobuf dependency version to 33.4 for Bazel 9 by @luispadron in #1648
- Update
const_protocols_to_gather.jsonto latest by @kntkymt in #1649 - Refactor toolchains to avoid eagerly evaluating autoconfig repo by @dzbarsky in #1653
- Fix
datapropagation to underlying libs for mixed libraries (#1654) by @luispadron in #1655 - Update protobuf to 34.0 for Bazel 9 by @luispadron in #1657
Full Changelog: 3.4.2...3.5.0
This release is compatible with Bazel 7.x LTS, 8.x LTS, and 9.x LTS.
MODULE.bazel Snippet
bazel_dep(name = "rules_swift", version = "3.5.0", 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 = "c98f201bc217d2ce28e01afc78b410d05c67b846c04a7095e4e701b37422ecb2",
url = "https://github.com/bazelbuild/rules_swift/releases/download/3.5.0/rules_swift.3.5.0.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()3.4.2
What's Changed
- Fix executing tests (#1639) by @adincebic in #1640
Full Changelog: 3.4.1...3.4.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.4.2", 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 = "03a5c2a93398f2fc4d6ddfb76cf80cd957483ec286d34f50cc22cda002aab445",
url = "https://github.com/bazelbuild/rules_swift/releases/download/3.4.2/rules_swift.3.4.2.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()3.4.1
What's Changed
- Disable rolling CI in BCR by @aaronsky in #1622
- Make the Runfiles compatible with Swift 6 language mode by @kirillyakimovich in #1617
- Enable code coverage in Xcode for swift-built targets by @aaronsky in #1623
- Fix syntax of arguments passed on to Clang by @SimplyDanny in #1625
- Fix linking failure caused by
always_linkdefaulting toFalseby @adincebic in #1626
New Contributors
- @kirillyakimovich made their first contribution in #1617
- @SimplyDanny made their first contribution in #1625
Full Changelog: 3.4.0...3.4.1
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.4.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 = "6309d226474c6b9293f790d3da43d3b04dc0a71b75b87df3107871a0ea59d5f6",
url = "https://github.com/bazelbuild/rules_swift/releases/download/3.4.1/rules_swift.3.4.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()3.4.0
What's Changed
- Fix last_green bazel support by @keith in #1606
- feat(examples): make -cxx-interoperability-mode a feature by @ma-oli in #1567
- Support
additional_linker_inputsinswift_binaryby @adincebic in #1584 - feat(swift): add embedded Swift feature by @ma-oli in #1608
- feat(toolchain): add embedded OS support in swift toolchain by @ma-oli in #1609
- feat(toolchain): add missing action types to toolchain configs by @ma-oli in #1611
- Allow setting
exec_groupin more places by @brentleyjones in #1588 - Fix
SWIFT_TOOLCHAIN_TYPEto work with Bzlmod + AEGs by @brentleyjones in #1587 - refactor(toolchain): fix --plugin-path on non-Xcode toolchains by @ma-oli in #1610
- Fix windows toolchain target_compatible_with by @keith in #1616
- Move the C++ toolchain into its own execution group so that it does not have to be bound by the same constraints as the execution platform selected for the Swift toolchain. by @brentleyjones in #1586
- Enable support for AEGs by @brentleyjones in #1585
- Add rpaths for the toolchain's compatibility back-deployment librarie by @adincebic in #1589
Full Changelog: 3.3.0...3.4.0
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.4.0", 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 = "13219bde174594c7af5403c7f3f41c37d1a62041294a0fd14c0834ca472fa8dc",
url = "https://github.com/bazelbuild/rules_swift/releases/download/3.4.0/rules_swift.3.4.0.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()3.3.0
What's Changed
- Include copts in WMO feature detection by @ma-oli in #1598
- Fix error when CC_TARGET_TRIPLE is passed by @ma-oli in #1596
- Handle Xcode version starting with path separator by @ma-oli in #1597
- Fix some bazel @ HEAD compatibility by @keith
Full Changelog: 3.2.0...3.3.0
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.3.0", 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 = "94136edf1ccdc7b9bb68ff85e006fe698ea161a02fbee55ba1feb4ce71522cfb",
url = "https://github.com/bazelbuild/rules_swift/releases/download/3.3.0/rules_swift.3.3.0.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()3.2.0
What's Changed
- [meta] Add @aaronsky to BCR maintainers list by @aaronsky in #1556
- Get triple from the make variable CC_TARGET_TRIPLE by @ma-oli in #1558
- Use apple constraints over config_setting_group in select by @ma-oli in #1563
- feat(toolchain): add copts and objc_copts attributes to toolchains by @ma-oli in #1564
- Remove space-in-path replacement by @brentleyjones in #896
- Fixes warnings in SwiftTestingRunner.swift by @csmulhern in #1565
- Make sure that symbol graph extraction and interface synthesis honor
-Xccflags that are derived from Bazel's--objccoptflags and from--compilation_mode. by @luispadron in #1566 - Lock
last_greenuntil a BEP bug is fixed by @brentleyjones in #1569 - Remove Patrick from contributors by @brentleyjones in #1573
- Fix
swift.split_derived_files_generationby @brentleyjones in #1574 - Use
all_compile_action_names()in more locations by @brentleyjones in #1579 - Remove Thi from maintainers by @brentleyjones in #1578
- Add
coptsandlinkoptstoswift_proto_libraryby @karim-alweheshy in #1497 - Add
$(location)support to proto rules by @brentleyjones in #1580 - Add
additional_objc_compiler_inputstomixed_langauge_libraryby @brentleyjones in #1581 - Pass
swiftc_inputstoswift_common.compileincompile_swift_protos_for_targetby @brentleyjones in #1582 - Ensure that PCMs are hermetic on Xcode 16 and higher. by @luispadron in #1575
- Unconditionally pass -file-prefix-map to the compiler to remove nondeterministic paths. by @luispadron in #1576
- Make sure that .swiftinterface compile actions also use
-file-prefix-map, so that indexstores emitted by those actions are also deterministic. by @luispadron in #1577 - Use Xcode 16.4 in CI and fix non-bzlmod dependency issues by @luispadron in #1591
- Add
@adincebicas a maintainer by @adincebic in #1592 - Force everyone to use checked continuations Obj-C async bridging, regardless of Swift language mode by @adincebic in #1593
- Add adincebic as BCR maintainer by @adincebic in #1594
New Contributors
- @ma-oli made their first contribution in #1558
- @csmulhern made their first contribution in #1565
- @karim-alweheshy made their first contribution in #1497
Full Changelog: 3.1.2...3.2.0
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.2.0", 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 = "e07a9870c2b2023a1212cb8ea7f436f26d68acddae99c868abb0fab710a247d9",
url = "https://github.com/bazelbuild/rules_swift/releases/download/3.2.0/rules_swift.3.2.0.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()3.1.2
What's Changed
- Merge Swift and Clang entries in
.swift-explicit-module-map.jsonby @ileitch in #1545 - Pass
-file-compilation-dir .explicitly to the Swift driver so that.swiftmodulefiles are hermetic. by @adincebic in #1554 - Insert
-plugin-pathfor testing macros location when building tests by @aaronsky in #1555
New Contributors
Full Changelog: 3.1.1...3.1.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.1.2", 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 = "5eff717c18bb513285b499add68f2331509cd4e411ff085e96a86b3342c1e5aa",
url = "https://github.com/bazelbuild/rules_swift/releases/download/3.1.2/rules_swift.3.1.2.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()3.1.1
What's Changed
- Fix dropping args when checking for
-Xwrapped-swiftarg in worker by @luispadron in #1551
Full Changelog: 3.1.0...3.1.1
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.1.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 = "a05b5aa112278c0f934fa8352c07b489f92014f437349b12e074bd0b12f53e30",
url = "https://github.com/bazelbuild/rules_swift/releases/download/3.1.1/rules_swift.3.1.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()3.1.0
What's Changed
- Add
always_include_developer_search_pathstomixed_language_libraryby @jschear in #1539 - Add
clang_depsattr tomixed_language_libraryby @jschear in #1540 - Use
ctx.coverage_instrumentedto detect if a target should be instrumented by @brentleyjones in #1547 - Fix
rules_ccfor 7.x WORKSPACE/non-bzlmod users by @aaronsky in #1549 - Fix
.swiftsourceinforeadonly bugs in version 3+ by @luispadron in #1550
Full Changelog: 3.0.2...3.1.0
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.1.0", 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 = "a7753fc930005bd1fffde96a63b562db873d58d5ad07752c1f7e16581feb4bb6",
url = "https://github.com/bazelbuild/rules_swift/releases/download/3.1.0/rules_swift.3.1.0.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()2.9.0
What's Changed
- Add
always_include_developer_search_pathsto `mixed_language_librar… by @jschear in #1541 - Add
clang_depsattr tomixed_language_library(#1540) by @jschear in #1542
Full Changelog: 2.8.2...2.9.0
This release is compatible with Bazel 6.x LTS, 7.x LTS, 8.x LTS, and 9.x rolling releases.
MODULE.bazel Snippet
bazel_dep(name = "rules_swift", version = "2.9.0", 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 = "f7a67197cd8a79debfe70b8cef4dc19d03039af02cc561e31e0718e98cad83ac",
url = "https://github.com/bazelbuild/rules_swift/releases/download/2.9.0/rules_swift.2.9.0.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()