aboutgitcodebugslistschat
path: root/Makefile
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2022-09-26 20:43:46 +1000
committerStefano Brivio <sbrivio@redhat.com>2022-09-29 12:21:39 +0200
commita1a058533c0cfaee621bf5d49ccd7d1e038550d9 (patch)
treefd43d6752cbe5b88fcb56b9b32270a12b029525a /Makefile
parent6d171cb357778b2a5accfe2ba8f4aa18ccd38647 (diff)
downloadpasst-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>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1a3dca9..59967eb 100644
--- a/Makefile
+++ b/Makefile
@@ -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