Skip to content

Commit 91b6651

Browse files
committed
Merge branch 'master' into armallen/3002
2 parents c46a8cc + 4c8d77e commit 91b6651

File tree

6 files changed

+1072
-9
lines changed

6 files changed

+1072
-9
lines changed

.bazelignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
c/third_party

MODULE.bazel

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# This MODULE file can not be used for local development inside libsbp, due to problems
2+
# with `rules_foreign_cc`, `check` and `rules_swiftnav` on Mac. On Linux it works fine.
3+
# However, this MODULE file can be used to consume libsbp as a module in other projects.
4+
# For local development, use the WORKSPACE (and Bazel 6) file instead.
5+
6+
module(name = "libsbp", version = "0.1.0", compatibility_level = 1)
7+
8+
bazel_dep(name = "platforms", version = "0.0.9")
9+
bazel_dep(name = "rules_swiftnav", version = "0.2.0")
10+
git_override(
11+
module_name = "rules_swiftnav",
12+
remote = "https://github.com/swift-nav/rules_swiftnav.git",
13+
commit = "db80d301ec408ff6fcf3a3d44c75411fec8f4e14",
14+
)
15+
16+
swift_cc_toolchain_ext = use_extension("@rules_swiftnav//cc:extensions.bzl", "swift_cc_toolchain_extension")
17+
use_repo(
18+
swift_cc_toolchain_ext,
19+
"aarch64-darwin-llvm",
20+
"aarch64-linux-llvm",
21+
"aarch64-linux-musl",
22+
"aarch64-sysroot",
23+
"x86_64-linux-llvm",
24+
"x86_64-sysroot",
25+
)
26+
27+
register_toolchains(
28+
"@rules_swiftnav//cc/toolchains/llvm/aarch64-darwin:cc-toolchain-aarch64-darwin",
29+
"@rules_swiftnav//cc/toolchains/llvm/x86_64-linux:cc-toolchain-x86_64-linux",
30+
"@rules_swiftnav//cc/toolchains/llvm/aarch64-linux:cc-toolchain-aarch64-linux",
31+
"@rules_swiftnav//cc/toolchains/llvm/x86_64-darwin:cc-toolchain-x86_64-darwin",
32+
)
33+
34+
bazel_dep(name = "check", version = "0.15.2", dev_dependency = True)
35+
bazel_dep(name = "googletest", version = "1.13.0", dev_dependency = True)
36+
37+
bazel_dep(name = "hedron_compile_commands", dev_dependency = True)
38+
git_override(
39+
module_name = "hedron_compile_commands",
40+
remote = "https://github.com/hedronvision/bazel-compile-commands-extractor.git",
41+
commit = "4f28899228fb3ad0126897876f147ca15026151e",
42+
# Replace the commit hash (above) with the latest (https://github.com/hedronvision/bazel-compile-commands-extractor/commits/main).
43+
# Even better, set up Renovate and let it do the work for you (see "Suggestion: Updates" in the README).
44+
)

0 commit comments

Comments
 (0)