Commit ee0b48fa authored by Josh Poimboeuf's avatar Josh Poimboeuf Committed by Peter Zijlstra
Browse files

objtool: Set minimum xxhash version to 0.8

parent 9c7dc1dd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@ ifeq ($(SRCARCH),loongarch)
endif

ifeq ($(ARCH_HAS_KLP),y)
	HAVE_XXHASH = $(shell echo "int main() {}" | \
	HAVE_XXHASH = $(shell printf "$(pound)include <xxhash.h>\nXXH3_state_t *state;int main() {}" | \
		      $(HOSTCC) -xc - -o /dev/null -lxxhash 2> /dev/null && echo y || echo n)
	ifeq ($(HAVE_XXHASH),y)
		BUILD_KLP	 := y
+1 −1
Original line number Diff line number Diff line
@@ -164,7 +164,7 @@ static bool opts_valid(void)

#ifndef BUILD_KLP
	if (opts.checksum) {
		ERROR("--checksum not supported; install xxhash-devel/libxxhash-dev and recompile");
		ERROR("--checksum not supported; install xxhash-devel/libxxhash-dev (version >= 0.8) and recompile");
		return false;
	}
#endif