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
2 changes: 1 addition & 1 deletion .bazeliskrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
USE_BAZEL_VERSION=6.5.0
USE_BAZEL_VERSION=8.3.1
9 changes: 9 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# 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

Expand Down
9 changes: 2 additions & 7 deletions MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
# This MODULE file can not be used for local development inside libsbp, due to problems
# with `rules_foreign_cc`, `check` and `rules_swiftnav` on Mac. On Linux it works fine.
# However, this MODULE file can be used to consume libsbp as a module in other projects.
# For local development, use the WORKSPACE (and Bazel 6) file instead.

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.5.0")
bazel_dep(name = "rules_swiftnav", version = "0.8.0")

swift_cc_toolchain_ext = use_extension("@rules_swiftnav//cc:extensions.bzl", "swift_cc_toolchain_extension")
use_repo(
Expand All @@ -26,7 +21,7 @@ register_toolchains(
"@rules_swiftnav//cc/toolchains/llvm/x86_64-darwin:cc-toolchain-x86_64-darwin",
)

bazel_dep(name = "check", version = "0.15.2", dev_dependency = True)
bazel_dep(name = "check", version = "0.15.2.bcr.1", dev_dependency = True)
bazel_dep(name = "googletest", version = "1.13.0", dev_dependency = True)

bazel_dep(name = "hedron_compile_commands", dev_dependency = True)
Expand Down
14 changes: 6 additions & 8 deletions MODULE.bazel.lock

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