Makefile uses Bear to improve clangd
This commit is contained in:
parent
f6a4c76b54
commit
9f304641b2
3 changed files with 10 additions and 5 deletions
|
|
@ -41,4 +41,5 @@ XLIBS =
|
|||
# dwl itself only uses C99 features, but wlroots' headers use anonymous unions (C11).
|
||||
# To avoid warnings about them, we do not use -std=c99 and instead of using the
|
||||
# gmake default 'CC=c99', we use cc.
|
||||
CC = cc
|
||||
# NOTE: Bear is used if available+executable (generate compile_commands.json)
|
||||
CC = $$([ -x "$$(command -v bear)" ] && echo 'bear -- ') cc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue