You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,6 +56,10 @@ scip-clang currently supports indexing using a
56
56
[JSON compilation database][].
57
57
CMake, Bazel and Meson support emitting this format
58
58
for compatibility with clang-based tooling.
59
+
Projects which use Make or other build systems may
60
+
be able to use [Bear](https://github.com/rizsotto/Bear)
61
+
to intercept compilation commands and generate a compilation database.
62
+
59
63
We're interested in exploring more
60
64
[native Bazel support](https://github.com/sourcegraph/scip-clang/issues/182) in the future.
61
65
@@ -121,6 +125,15 @@ See the [Usage](#usage) section for step-by-step instructions.
121
125
-**Meson**: Use the Ninja backend,
122
126
[which generates a compilation database](https://sourcegraph.com/search?q=context:global+repo:%5Egithub%5C.com/mesonbuild/meson%24+compile_commands.json&patternType=standard&sm=1&groupBy=path).
123
127
128
+
-**Make** or other build systems: Use [Bear](https://github.com/rizsotto/Bear)
129
+
to wrap the build system invocation which build all the code. For example:
130
+
131
+
```bash
132
+
bear -- make all
133
+
```
134
+
135
+
In our testing, Bear works with Boost's B2 build system as well.
136
+
124
137
### Building code
125
138
126
139
Large projects typically use various forms of code generation.
0 commit comments