1.3.0
What's Changed
- Enable whole module optimization by default for
--compilation_mode opt
builds. Pass--features=-swift.opt_uses_wmo
to restore the previous behavior - Support
env
inswift_test
, thanks @maxwellE! - Add ability to use
PathToUnderscores
in proto to Swift generation. Enabled with--features swift.generate_path_to_underscores_from_proto_files
, thanks @mattrobmattrob! - Add Swift 5.6 feature for partially explicit modules that can be used in place of VFS overlays to better support incremental compilation. Enabled with
swift.use_explicit_swift_module_map
- Fix incremental compilation issue with emitting Objective-C headers
- Transition
--proto_compiler
instead of patchingrules_proto
to better support--@build_bazel_rules_swift//swift:universal_tools
, thanks @thii! - Match Swift Package Manager behavior for main entry point binaries
- Update
index-import
to use a universal binary, thanks @brentleyjones! - Update rules_proto
This release is compatible with 5.x LTS and bazel 6.x rolling releases.
Workspace Snippet
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "build_bazel_rules_swift",
sha256 = "2ce874c8c34a03a0a33bfb0c8100f0be32279e0a40f5b794fd943f15441e034a",
url = "https://github.com/bazelbuild/rules_swift/releases/download/1.3.0/rules_swift.1.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()