Releases: bazelbuild/rules_swift
Releases · bazelbuild/rules_swift
1.10.0
What's Changed
- Add support for
-package-name
via a newpackage_name
attribute onswift_*
rules. This requires Swift 5.9+ and enables use of thepackage
ACL - Replace
DEVELOPER_DIR
remapping with/PLACEHOLDER_DEVELOPER_DIR
to make it easier to differentiate and to use an absolute path which improves index-import performance - Update
platforms
to 0.0.7 to support visionOS in the future - Add an API to compile a
.swiftinterface
file into a.swiftmodule
for vendored frameworks
This release is compatible with 5.x LTS, 6.x LTS, and bazel 7.x rolling releases
MODULE.bazel Snippet
bazel_dep(name = "rules_swift", version = "1.10.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 = "3a595a64afdcaf65b74b794661556318041466d727e175fa8ce20bdf1bb84ba0",
url = "https://github.com/bazelbuild/rules_swift/releases/download/1.10.0/rules_swift.1.10.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()
1.9.1
What's Changed
- Upgrade index-import to fix a bug with
swift.use_global_index_store
This release is compatible with 5.x LTS, 6.x LTS, and bazel 7.x rolling releases
MODULE.bazel Snippet
bazel_dep(name = "rules_swift", version = "1.9.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 = "b3b6c5c9f2a589150f71e79dec1e1ed0eb974dbd49e9317df4e09e08ff6e83df",
url = "https://github.com/bazelbuild/rules_swift/releases/download/1.9.1/rules_swift.1.9.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()
1.9.0
What's Changed
- Switch to upstream apple
config_settings
- Upgrade GRPC and dependencies for async/await support, thanks @AttilaTheFun!
This release is compatible with 5.x LTS, 6.x LTS, and bazel 7.x rolling releases
MODULE.bazel Snippet
bazel_dep(name = "rules_swift", version = "1.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 = "7929b4fd6d9f7c44ed5734a15004bfc2046146ba5ea269f0568d9efe2f405ef3",
url = "https://github.com/bazelbuild/rules_swift/releases/download/1.9.0/rules_swift.1.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()
1.8.0
What's Changed
- Remove support for bitcode now that Xcode 14.1 is the minimum supported version required for uploading to the App Store
- Fix Swift toolchain discovery invalidation on Linux, thanks @gferon!
- Respect
--incompatible_objc_alwayslink_by_default
- Fix incompatibility with
--incompatible_use_host_features
This release is compatible with 5.x LTS, 6.x LTS, and bazel 7.x rolling releasess
MODULE.bazel Snippet
bazel_dep(name = "rules_swift", version = "1.8.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 = "b98bd1ec03c713e2ff5c3aa8c05930d8b6ab85cc82b3ae5d869058da4731f230",
url = "https://github.com/bazelbuild/rules_swift/releases/download/1.8.0/rules_swift.1.8.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()
1.7.1
What's Changed
- Fixed
imported_library
handling on Bazel 5 (#1033)
This release is compatible with 5.x LTS and bazel 6.x rolling releases.
MODULE.bazel Snippet
bazel_dep(name = "rules_swift", version = "1.7.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 = "bf2861de6bf75115288468f340b0c4609cc99cc1ccc7668f0f71adfd853eedb3",
url = "https://github.com/bazelbuild/rules_swift/releases/download/1.7.1/rules_swift.1.7.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()
1.7.0
What's Changed
- Added global index store to unsupported features on Linux (#1017)
- Added support for removing
-ObjC
flag (#1018) - Reverted "Add support for imported_library when linking (#917)" (#1020)
- Disabled autolinking for dynamic frameworks (#1023)
- Added proper support for custom Swift toolchains (#1025)
- Removed conditionals for Xcode versions pre Xcode 13 (#1029)
This release is compatible with 5.x LTS and bazel 6.x rolling releases.
MODULE.bazel Snippet
bazel_dep(name = "rules_swift", version = "1.7.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 = "1ceb1a3be8776801f281bd1675e90cfa02e9a849478ec1496a249acaa313db2b",
url = "https://github.com/bazelbuild/rules_swift/releases/download/1.7.0/rules_swift.1.7.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()
1.6.0
What's Changed
- Fixed sanitizers on Linux (#975)
- Adds
-enable-bare-slash-regex
on Linux if supported (#971) - Added workaround for Swift + lld bug (#978)
- Enabled
swift.coverage_prefix_map
by default (#1002) - Added
--test_filter
support (#999) - Fixed
swift.use_global_index_store
when usingswift.file_prefix_map
(#1001) - Upgraded
apple_support
to 1.4.1 (#1010) - Enabled
-debug-prefix-map
by default on Linux (#1011) - Enabled
swift.remap_xcode_path
default (#1012) - Enabled
swift.use_response_files
by default on Linux (#1013) - Enabled
swift.file_prefix_map
by default if supported (#1014)
This release is compatible with 5.x LTS and bazel 6.x rolling releases.
MODULE.bazel Snippet
bazel_dep(name = "rules_swift", version = "1.6.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 = "d25a3f11829d321e0afb78b17a06902321c27b83376b31e3481f0869c28e1660",
url = "https://github.com/bazelbuild/rules_swift/releases/download/1.6.0/rules_swift.1.6.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()
1.5.1
What's Changed
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 = "84e2cc1c9e3593ae2c0aa4c773bceeb63c2d04c02a74a6e30c1961684d235593",
url = "https://github.com/bazelbuild/rules_swift/releases/download/1.5.1/rules_swift.1.5.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()
1.5.0
What's Changed
- Enable
swift.cacheable_swiftmodules
by default (#957) - Enable
swift.use_global_module_cache
by default (#956) - Update skylib (#954)
- Add support for automatically pushing bzlmod updates to the Bazel Central Registry (#948)
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 = "32f95dbe6a88eb298aaa790f05065434f32a662c65ec0a6aabdaf6881e4f169f",
url = "https://github.com/bazelbuild/rules_swift/releases/download/1.5.0/rules_swift.1.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()
1.4.0
What's Changed
- Fix incremental compilation when generated header is nested in a directory, thanks @brentleyjones!
- Add
-disable-autolink-framework
for static frameworks to avoid invalidLC_LINKER_OPTION
s with newer bazel / rules_apple versions
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 = "c244e9f804a48c27fe490150c762d8b0c868b23ef93dc4e3f93d8117ca216d92",
url = "https://github.com/bazelbuild/rules_swift/releases/download/1.4.0/rules_swift.1.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()