Skip to content

Commit 7ff1cda

Browse files
authored
bazel add gen_compile_commands target [BUILD-547] (#1300)
1 parent e9fc802 commit 7ff1cda

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

c/BUILD.bazel

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ SBP_INCLUDE = glob(["include/**/*.h"])
66
SBP_INCLUDE_INTERNAL = glob(["src/**/*.h"])
77

88
refresh_compile_commands(
9-
name = "refresh_compile_commands",
9+
name = "gen_compile_commands",
10+
visibility = ["//visibility:public"],
1011
)
1112

1213
swift_cc_library(

c/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ do-code-coverage:
1212

1313
do-generate-coverage-report: do-code-coverage
1414
genhtml bazel-out/_coverage/_coverage_report.dat -o coverage
15+
16+
gen-compile-commands:
17+
bazel run //c:gen_compile_commands

0 commit comments

Comments
 (0)