blob: 06ebba09ca62e8a32fb7682a759a1739a338b9b8 (
plain)
1
2
3
4
5
|
make --always-make --dry-run \
| grep -wE 'emcc|gcc|g\+\+|c\+\+' \
| grep -w '\-c' \
| jq -nR '[inputs|{directory:".", command:., file: match(" [^ ]+$").string[1:]}]' \
> compile_commands.json
|