From 647ae04de3f243ba7c17314fd126b114ca0c8dfc Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Tue, 28 Jul 2026 08:28:47 -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 v2.8.0