Skip to content

Commit ef3157d

Browse files
docs: Mention compdb generation for Nix + Make (#425)
1 parent 6c9b0f3 commit ef3157d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,10 @@ See the [Usage](#usage) section for step-by-step instructions.
134134
- **Meson**: Use the Ninja backend,
135135
[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).
136136

137+
- **Nix + Make**: When using Make under Nix, in our testing, the compilation
138+
database by Bear (recommended below) omits some flags needed to find headers
139+
from libc and libstdc++/libc++. Using [mini_compile_commands](https://github.com/danielbarter/mini_compile_commands) instead avoids that.
140+
137141
- **Make** or other build systems: Use [Bear](https://github.com/rizsotto/Bear)
138142
to wrap the build system invocation which can build all the code. For example:
139143

0 commit comments

Comments
 (0)