Skip to content

Commit 775d728

Browse files
authored
Update rules_swiftnav (#1516)
# Description Update `rules_swiftnav`. Remove `swiftnav-bazel-registry`, because all dependencies can be used from either BCR or `git_override`. # API compatibility Yes
1 parent 456cc0b commit 775d728

File tree

3 files changed

+9
-127
lines changed

3 files changed

+9
-127
lines changed

.bazelrc

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
11
# Enable bzl_mod support
2-
# In order to properly use the swiftnav-bazel-registry your local netrc needs to be configured
32
common --enable_bzlmod
4-
common --registry=https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/
5-
common --registry=https://bcr.bazel.build
63
common --@rules_swiftnav//cc:enable_bzlmod=true
74
# Preparation for Bazel 8 behavior of paths in external (plus instead of tilde)
85
common --incompatible_use_plus_in_repo_names
96

10-
# Causes the build to default to the custom toolchain
11-
build --incompatible_enable_cc_toolchain_resolution
12-
137
# Compile all swift targets and all other codes with C++17 standards
148
build --@rules_swiftnav//cc:cxx_standard=17
159
build --@rules_swiftnav//cc:global_cxx_standard=17

MODULE.bazel

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
module(name = "libsbp", version = "0.1.0", compatibility_level = 1)
22

33
bazel_dep(name = "platforms", version = "0.0.11")
4-
bazel_dep(name = "rules_swiftnav", version = "0.8.0")
4+
bazel_dep(name = "rules_swiftnav", version = "0.9.0")
5+
# Use
6+
git_override(
7+
module_name = "rules_swiftnav",
8+
remote = "https://github.com/swift-nav/rules_swiftnav.git",
9+
commit = "1ae7bb57e5a1f1602759e81c9ee0f457b91e35f4",
10+
)
511

612
swift_cc_toolchain_ext = use_extension("@rules_swiftnav//cc:extensions.bzl", "swift_cc_toolchain_extension")
713
use_repo(

MODULE.bazel.lock

Lines changed: 2 additions & 120 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)