make-lsp: Support Makefiles using cc/cxx/c++
This commit is contained in:
parent
2c0774e4a7
commit
abd0a7dd01
1 changed files with 3 additions and 1 deletions
|
|
@ -46,9 +46,11 @@ done
|
|||
|
||||
shift $((OPTIND-1))
|
||||
|
||||
COMPILER_RX='^\s*cc|^\s*cxx|^\s*c\+\+|^\s*gcc|^\s*g\+\+|^\s*clang|^\s*clang\+\+'
|
||||
|
||||
[ "$DEBUG" -ne 0 ] && set -x
|
||||
|
||||
make "$MAKEDIR" "$MAKEFILE" --always-make --dry-run ${@} \
|
||||
| grep -E '^\s*gcc|^\s*g\+\+|^\s*clang|^\s*clang\+\+' \
|
||||
| grep -E "$COMPILER_RX" \
|
||||
| grep -w '\-c' \
|
||||
| jq -nR '[inputs|{directory:".", command:., file: match(" [^ ]+$").string[1:]}]'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue