Makefile uses Bear to improve clangd

This commit is contained in:
Emile Clark-Boman 2025-08-28 00:11:54 +10:00
parent f6a4c76b54
commit 9f304641b2
3 changed files with 10 additions and 5 deletions

View file

@ -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