diff --git a/c/BUILD.bazel b/c/BUILD.bazel index 8e9fb5ae0c..4159fb28e8 100644 --- a/c/BUILD.bazel +++ b/c/BUILD.bazel @@ -6,7 +6,8 @@ SBP_INCLUDE = glob(["include/**/*.h"]) SBP_INCLUDE_INTERNAL = glob(["src/**/*.h"]) refresh_compile_commands( - name = "refresh_compile_commands", + name = "gen_compile_commands", + visibility = ["//visibility:public"], ) swift_cc_library( diff --git a/c/Makefile b/c/Makefile index 462cee7a65..9eb83be9d7 100644 --- a/c/Makefile +++ b/c/Makefile @@ -12,3 +12,6 @@ do-code-coverage: do-generate-coverage-report: do-code-coverage genhtml bazel-out/_coverage/_coverage_report.dat -o coverage + +gen-compile-commands: + bazel run //c:gen_compile_commands