Skip to content

Commit 1b1fd55

Browse files
authored
Mention correct bear command for bear version 2.4.x (#133)
1 parent 25eaf8c commit 1b1fd55

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

installation.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,8 +352,11 @@ Bazel can generate this file via [this extractor extension](https://github.com/h
352352
[Bear](https://github.com/rizsotto/Bear) is a tool to generate a
353353
compile_commands.json file by recording a complete build.
354354

355-
For a `make`-based build, you can run `make clean; bear -- make` to generate the
356-
file (and run a clean build!).
355+
For a `make`-based build, you can run
356+
- `make clean; bear -- make` (for bear 3.0.x versions)
357+
- `make clean; bear make` (for bear 2.4.x versions)
358+
359+
to generate the file (and run a clean build!).
357360

358361
On Windows, a tool similar to Bear called [compiledb](https://github.com/nickdiego/compiledb)
359362
can be used.

0 commit comments

Comments
 (0)