From 3187275184bedaecac46279946d2f5871643b720 Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Wed, 22 Apr 2026 05:29:01 +0200 Subject: [PATCH] Use CPPFLAGS and CXXFLAGS when compiling in autotest.sh. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This ensure the build flags used elsewhere are included also during testing. Patch based on change from Daniel Gröber via Debian. See also issue #5805. --- tests/tools/autotest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/tools/autotest.sh b/tests/tools/autotest.sh index e19a8d5af..24bf4b449 100755 --- a/tests/tools/autotest.sh +++ b/tests/tools/autotest.sh @@ -26,7 +26,7 @@ xfirrtl="../xfirrtl" abcprog="$toolsdir/../../yosys-abc" if [ ! -f "$toolsdir/cmp_tbdata" -o "$toolsdir/cmp_tbdata.c" -nt "$toolsdir/cmp_tbdata" ]; then - ( set -ex; ${CXX:-g++} -Wall -o "$toolsdir/cmp_tbdata" "$toolsdir/cmp_tbdata.c"; ) || exit 1 + ( set -ex; ${CXX:-g++} -Wall ${CPPFLAGS} ${CXXFLAGS:-} -o "$toolsdir/cmp_tbdata" "$toolsdir/cmp_tbdata.c"; ) || exit 1 fi while getopts xmGl:wkjvref:s:p:n:S:I:A:-: opt; do