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