Skip to content

Commit

Permalink
Makefile: don't warn about clang when building compile_commands.json
Browse files Browse the repository at this point in the history
This make target doesn't actually use any of the objects built by the
compiler, so there's no concern about using an untested compiler or
anything like that.

It doesn't really need the warnings to show either, and they're
obnoxious, so this commit takes them out for that build target.

Signed-off-by: Peter Jones <[email protected]>
  • Loading branch information
vathpela committed Dec 17, 2024
1 parent 7b850f7 commit a904a68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ endif

compile_commands.json : Makefile Make.rules Make.defaults
make clean
bear -- make COMPILER=clang test all
bear -- make COMPILER=clang WARNFLAGS+="-Wno-#warnings" test all
sed -i \
-e 's/"-maccumulate-outgoing-args",//g' \
$@
Expand Down

0 comments on commit a904a68

Please sign in to comment.