Fri, 19 Dec 2025 17:37:17 +0100
remove cx_ccmp_memcmp() again - i.e. we don't provide any 3-arg cmp func in compare.h
#!/bin/sh # determine number of processors nproc=`nproc` # backup config if [ -f config.mk ]; then cp config.mk config.mk.bak restore=1 else restore=0 fi perform_check() { make clean > /dev/null if ! make check -j$nproc > /dev/null ; then echo "fail." else echo "ok." fi } perform_check_cxx() { make clean > /dev/null # we cannot mute the warnings, so throw away everything if ! make check-cxx -j$nproc > /dev/null 2> /dev/null ; then echo "fail." else echo "ok." fi } for cc in clang gcc; do CC=$cc ./configure --debug > /dev/null printf "Check $cc... " perform_check printf "Check $cc (c++)... " perform_check_cxx done printf "Check w/o szmul builtin... " ./configure --debug --disable-szmul-builtin > /dev/null perform_check printf "Check w/o szmul builtin (c++)... " perform_check_cxx printf "Check release config... " ./configure --release > /dev/null perform_check printf "Check gcc C23... " CC=gcc CFLAGS=-std=c23 ./configure --debug > /dev/null perform_check # clean build files and rebuild with restored config make clean > /dev/null if [ $restore -eq 1 ]; then mv config.mk.bak config.mk make -j$nproc > /dev/null else rm config.mk fi