Skip to content

Commit 753d7ef

Browse files
committed
Add hedron
1 parent df8f6b5 commit 753d7ef

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

examples/small_world/.bazelrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ coverage --combined_report=lcov
1010
build:cov_mac --repo_env=GCOV=/Library/Developer/CommandLineTools/usr/bin/llvm-profdata
1111
build:cov_mac --test_env=LLVM_COV=/Library/Developer/CommandLineTools/usr/bin/llvm-cov
1212
build:cov_mac --copt=-ffile-compilation-dir=.
13+
14+
build:system-gcc --platforms=@rules_swiftnav//platforms:x86_64_linux_gcc11_system

examples/small_world/MODULE.bazel

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,16 @@ use_repo(
2020
)
2121

2222
register_toolchains(
23+
# llvm14
2324
"@rules_swiftnav//cc/toolchains/llvm/aarch64-darwin:cc-toolchain-aarch64-darwin",
25+
"@rules_swiftnav//cc/toolchains/llvm/x86_64-linux:cc-toolchain-x86_64-linux",
26+
# llvm20
2427
"@rules_swiftnav//cc/toolchains/llvm20/aarch64-darwin:cc-toolchain-aarch64-darwin",
2528
"@rules_swiftnav//cc/toolchains/llvm20/x86_64-darwin:cc-toolchain-x86_64-darwin",
2629
"@rules_swiftnav//cc/toolchains/llvm20/aarch64-linux:cc-toolchain-aarch64-linux",
2730
"@rules_swiftnav//cc/toolchains/llvm20/x86_64-linux:cc-toolchain-x86_64-linux",
31+
# system gcc
32+
"@rules_swiftnav//cc/toolchains/system_gcc/gcc11_x86_64-linux:system-cc-toolchain-x86_64-linux",
2833
)
2934

3035
bazel_dep(name = "eigen", version = "5.0.0")
@@ -38,3 +43,14 @@ bazel_dep(
3843
version = "8.2.0.2",
3944
dev_dependency = True,
4045
)
46+
47+
# bazel run @hedron_compile_commands//:refresh_all
48+
# bazel run @hedron_compile_commands//:refresh_all -- --config=system-gcc
49+
bazel_dep(name = "hedron_compile_commands", dev_dependency = True)
50+
git_override(
51+
module_name = "hedron_compile_commands",
52+
commit = "4f28899228fb3ad0126897876f147ca15026151e",
53+
remote = "https://github.com/hedronvision/bazel-compile-commands-extractor.git",
54+
# Replace the commit hash (above) with the latest (https://github.com/hedronvision/bazel-compile-commands-extractor/commits/main).
55+
# Even better, set up Renovate and let it do the work for you (see "Suggestion: Updates" in the README).
56+
)

0 commit comments

Comments
 (0)