@@ -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 = "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