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