diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2022-09-26 20:43:46 +1000 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-09-29 12:21:39 +0200 |
commit | a1a058533c0cfaee621bf5d49ccd7d1e038550d9 (patch) | |
tree | fd43d6752cbe5b88fcb56b9b32270a12b029525a | |
parent | 6d171cb357778b2a5accfe2ba8f4aa18ccd38647 (diff) | |
download | passt-a1a058533c0cfaee621bf5d49ccd7d1e038550d9.tar passt-a1a058533c0cfaee621bf5d49ccd7d1e038550d9.tar.gz passt-a1a058533c0cfaee621bf5d49ccd7d1e038550d9.tar.bz2 passt-a1a058533c0cfaee621bf5d49ccd7d1e038550d9.tar.lz passt-a1a058533c0cfaee621bf5d49ccd7d1e038550d9.tar.xz passt-a1a058533c0cfaee621bf5d49ccd7d1e038550d9.tar.zst passt-a1a058533c0cfaee621bf5d49ccd7d1e038550d9.zip |
cppcheck: Add target specific headers
Debian and similar distros put target specific header files in
/usr/include/<arch-vendor-os>, rather than directly in /usr/include. Add
this directory to the includes for cppcheck so it can find them.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -270,7 +270,7 @@ clang-tidy: $(SRCS) $(HEADERS) -config='{CheckOptions: [{key: bugprone-suspicious-string-compare.WarnOnImplicitComparison, value: "false"}]}' \ --warnings-as-errors=* $(SRCS) -- $(filter-out -pie,$(FLAGS) $(CFLAGS)) -SYSTEM_INCLUDES := /usr/include +SYSTEM_INCLUDES := /usr/include $(wildcard /usr/include/$(TARGET)) ifeq ($(shell $(CC) -v 2>&1 | grep -c "gcc version"),1) VER := $(shell $(CC) -dumpversion) SYSTEM_INCLUDES += /usr/lib/gcc/$(TARGET)/$(VER)/include |