Skip to content

Commit 85ddfca

Browse files
committed
Add hedron
1 parent 1ae7bb5 commit 85ddfca

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
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 = "googletest", version = "1.16.0", dev_dependency = True)
@@ -36,3 +41,14 @@ bazel_dep(
3641
version = "8.2.0.2",
3742
dev_dependency = True,
3843
)
44+
45+
# bazel run @hedron_compile_commands//:refresh_all
46+
# bazel run @hedron_compile_commands//:refresh_all -- --config=system-gcc
47+
bazel_dep(name = "hedron_compile_commands", dev_dependency = True)
48+
git_override(
49+
module_name = "hedron_compile_commands",
50+
commit = "4f28899228fb3ad0126897876f147ca15026151e",
51+
remote = "https://github.com/hedronvision/bazel-compile-commands-extractor.git",
52+
# Replace the commit hash (above) with the latest (https://github.com/hedronvision/bazel-compile-commands-extractor/commits/main).
53+
# Even better, set up Renovate and let it do the work for you (see "Suggestion: Updates" in the README).
54+
)

examples/small_world/MODULE.bazel.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)