From 0200baa675d3b51c0f021da7728353ee7ceedba4 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Fri, 16 Feb 2024 12:06:15 +0000 Subject: build system: avoid full rebuild when EXTRAVERSION changes The last two commits allow EXTRAVERSION to track the current state of a git repository. The build system was unable to determine which files were affected by changes to EXTRAVERSION and caused a full rebuild when it changed. Alter how the version information is passed to the code so only a handful of files need to be rebuilt when it changes. --- libbb/messages.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libbb/messages.c') diff --git a/libbb/messages.c b/libbb/messages.c index 3c9d8683a..12079a2e0 100644 --- a/libbb/messages.c +++ b/libbb/messages.c @@ -5,6 +5,9 @@ * Licensed under GPLv2 or later, see file LICENSE in this source tree. */ #include "libbb.h" +#if ENABLE_PLATFORM_MINGW32 +# include "BB_VER.h" +#endif /* allow version to be extended, via CFLAGS */ #ifndef BB_EXTRA_VERSION -- cgit v1.2.3-55-g6feb