srctree

Robin Linden parent 1c8078f1 84df78f7
build: Make generating compile_commands.json more convenient

.gitignore added: 29, removed: 3, total 26
@@ -1,8 +1,14 @@
# Build artifacts.
/bazel-*
/compile_commands.json
/external
 
# Work-in-progress directory.
/wip
 
# Local settings.
/.bazelrc.local
 
# For clangd, required to be here by hedronvision/bazel-compile-commands-extractor.
# IDE files in general should go in .git/info/exclude.
/.cache/
 
filename was Deleted added: 29, removed: 3, total 26
@@ -0,0 +1,6 @@
load("@hedron_compile_commands//:refresh_compile_commands.bzl", "refresh_compile_commands")
 
refresh_compile_commands(
name = "refresh_compile_commands",
tags = ["manual"],
)
 
WORKSPACE added: 29, removed: 3, total 26
@@ -9,6 +9,20 @@ http_archive(
url = "https://github.com/bazelbuild/platforms/releases/download/0.0.5/platforms-0.0.5.tar.gz",
)
 
# Misc tools
# =========================================================
 
http_archive(
name = "hedron_compile_commands",
sha256 = "89cf5a306d25ab14559c95e82d0237638a01eb45e8f4f181304540f97e4d66fe",
strip_prefix = "bazel-compile-commands-extractor-d3cbc6220320e8d2fce856d8487b45e639e57758",
url = "https://github.com/hedronvision/bazel-compile-commands-extractor/archive/d3cbc6220320e8d2fce856d8487b45e639e57758.tar.gz",
)
 
load("@hedron_compile_commands//:workspace_setup.bzl", "hedron_compile_commands_setup")
 
hedron_compile_commands_setup()
 
# Third-party
# =========================================================