@@ -20,11 +20,16 @@ use_repo(
2020)
2121
2222register_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
3035bazel_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+ )
0 commit comments