From 4518a0c4405467bdfc5fe37e3deaca3918c0d046 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Fri, 31 Jul 2026 20:15:56 -1000 Subject: Add CGIT_EXTRA_CFLAGS for cgit-only build flags --- source/cgit.mk | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/cgit.mk') diff --git a/source/cgit.mk b/source/cgit.mk index 7852b99..eb8790c 100644 --- a/source/cgit.mk +++ b/source/cgit.mk @@ -41,6 +41,10 @@ CGIT_CFLAGS += -DCGIT_CONFIG='"$(CGIT_CONFIG)"' CGIT_CFLAGS += -DCGIT_SCRIPT_NAME='"$(CGIT_SCRIPT_NAME)"' CGIT_CFLAGS += -DCGIT_CACHE_ROOT='"$(CACHE_ROOT)"' +# Reaches only the cgit objects, so a caller can tighten the build (CI passes +# -Werror) without holding git's own sources to the same standard. +CGIT_CFLAGS += $(CGIT_EXTRA_CFLAGS) + PKG_CONFIG ?= pkg-config ifdef NO_C99_FORMAT -- cgit 2.12.1