File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ definitions that cannot be translated.
193
193
### Generating `compile_commands.json` Files
194
194
195
195
The `compile_commands.json` file can be automatically created
196
- using either `cmake`, `intercept-build`, or `bear`.
196
+ using either `cmake`, `meson`, ` intercept-build`, or `bear`.
197
197
198
198
It may be a good idea to remove optimizations (`-OX`) from the compilation database,
199
199
as there are optimization builtins which we do not support translating.
@@ -209,6 +209,16 @@ This works on Linux and MacOS.
209
209
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 ...
210
210
```
211
211
212
+ #### ... with `meson`
213
+
214
+ When creating the initial build directory with `meson`,
215
+ it will automatically generate a `compile_commands.json`
216
+ file inside of `<build_dir>`.
217
+
218
+ ```sh
219
+ meson setup <build_dir>
220
+ ```
221
+
212
222
#### ... with `intercept-build`
213
223
214
224
`intercept-build` (part of the [scan-build tool](https://github.com/rizsotto/scan-build))
You can’t perform that action at this time.
0 commit comments