Skip to content

Commit

Permalink
build: improve clippy options
Browse files Browse the repository at this point in the history
* adds a `--with-clippy=...` option to use a prebuilt clippy binary
* limits the autoconf tests done for `--enable-clippy-only`
  (e.g. no libyang)

Fixes: FRRouting#3921
Fixes: FRRouting#4006
Signed-off-by: David Lamparter <equinox@diac24.net>
  • Loading branch information
eqvinox committed Jun 12, 2019
1 parent 102f26e commit a71c503
Show file tree
Hide file tree
Showing 3 changed files with 188 additions and 144 deletions.
6 changes: 6 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ shvar-%:
var-%:
@echo "$($*)" >&$(VARFD)

if ONLY_CLIPPY
.DEFAULT_GOAL := clippy-only
endif
clippy-only: Makefile lib/clippy config.h
.PHONY: clippy-only

# overwriting these vars breaks cross-compilation. let's be helpful and warn.
#
# note: "#AUTODERP# " will be removed from Makefile by configure. These are
Expand Down
Loading

0 comments on commit a71c503

Please sign in to comment.