Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
# Enable bzl_mod support
# In order to properly use the swiftnav-bazel-registry your local netrc needs to be configured
common --enable_bzlmod
common --registry=https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/
common --registry=https://bcr.bazel.build
common --@rules_swiftnav//cc:enable_bzlmod=true
# Preparation for Bazel 8 behavior of paths in external (plus instead of tilde)
common --incompatible_use_plus_in_repo_names

# Causes the build to default to the custom toolchain
build --incompatible_enable_cc_toolchain_resolution

# Compile all swift targets and all other codes with C++17 standards
build --@rules_swiftnav//cc:cxx_standard=17
build --@rules_swiftnav//cc:global_cxx_standard=17
Expand Down
8 changes: 7 additions & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
module(name = "libsbp", version = "0.1.0", compatibility_level = 1)

bazel_dep(name = "platforms", version = "0.0.11")
bazel_dep(name = "rules_swiftnav", version = "0.8.0")
bazel_dep(name = "rules_swiftnav", version = "0.9.0")
# Use
git_override(
module_name = "rules_swiftnav",
remote = "https://github.com/swift-nav/rules_swiftnav.git",
commit = "1ae7bb57e5a1f1602759e81c9ee0f457b91e35f4",
)

swift_cc_toolchain_ext = use_extension("@rules_swiftnav//cc:extensions.bzl", "swift_cc_toolchain_extension")
use_repo(
Expand Down
122 changes: 2 additions & 120 deletions MODULE.bazel.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.