[master] 0b91fc754 vtc-bisect: Pass build options via the environment

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Fri Apr 4 14:50:07 UTC 2025


commit 0b91fc75436eb288b6e446d9d5fcf7368c1723c7
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Fri Apr 4 11:17:19 2025 +0200

    vtc-bisect: Pass build options via the environment
    
    The first and foremost goal is to disable developer warnings for
    compiler warnings that didn't trigger several releases ago.

diff --git a/tools/vtc-bisect.sh b/tools/vtc-bisect.sh
index e0f2e8b92..7a085a08d 100755
--- a/tools/vtc-bisect.sh
+++ b/tools/vtc-bisect.sh
@@ -51,6 +51,11 @@ usage() {
 	-i         : inverted mode, look for a bug fix instead
 	-j <jobs>  : number of jobs for make invocations (defaults to 8)
 
+	Environment variables:
+
+	CONFIGURE_OPTS : additional options for the configure script
+	MAKE_OPTS      : additional options for make(1) executions
+
 	When <file> is empty or missing, bisect.vtc is expected to be found
 	at the root of the git repository. The current source tree is used
 	and VPATH setups are not supported.
@@ -66,9 +71,9 @@ usage() {
 }
 
 build() {
-	make -s -j"$MAKE_JOBS" all || {
-		./autogen.des
-		make -s -j"$MAKE_JOBS" all
+	make -s -j"$MAKE_JOBS" ${MAKE_OPTS:-} all || {
+		./autogen.des ${CONFIGURE_OPTS:-}
+		make -s -j"$MAKE_JOBS" ${MAKE_OPTS:-} all
 	}
 }
 


More information about the varnish-commit mailing list