Skip to content

Commit 1de413b

Browse files
committed
Merge branch 'rj/hdr-check-gcrypt-fix'
The set of header files used by "make hdr-check" unconditionally included sha256/gcrypt.h, even when it is not used, causing the make target to fail. We now skip it when GCRYPT_SHA256 is not in use. * rj/hdr-check-gcrypt-fix: Makefile: fix 'hdr-check' when GCRYPT not installed
2 parents 2274fc7 + f23aa18 commit 1de413b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2749,7 +2749,10 @@ $(SP_OBJ): %.sp: %.c GIT-CFLAGS FORCE
27492749
sparse: $(SP_OBJ)
27502750

27512751
GEN_HDRS := command-list.h unicode-width.h
2752-
EXCEPT_HDRS := $(GEN_HDRS) compat% xdiff%
2752+
EXCEPT_HDRS := $(GEN_HDRS) compat/% xdiff/%
2753+
ifndef GCRYPT_SHA256
2754+
EXCEPT_HDRS += sha256/gcrypt.h
2755+
endif
27532756
CHK_HDRS = $(filter-out $(EXCEPT_HDRS),$(patsubst ./%,%,$(LIB_H)))
27542757
HCO = $(patsubst %.h,%.hco,$(CHK_HDRS))
27552758

0 commit comments

Comments
 (0)