From c3506750ff7589115cfbe1803cfcaa675a2726e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 28 Nov 2026 12:01:15 +0100 Subject: [PATCH] Fix #15282 (donate-cpu: old Cppcheck version is compiled with -DNDEBUG but head is not, so the results can't be compared) The Makefile of release versions adds -DNDEBUG but the Makefile on main does not. Therefore the old version was compiled without assertions and head with assertions, and an assertion failure in head was reported as a crash that did not happen in the old version. Compile all versions with -UNDEBUG so the results can be compared. Co-Authored-By: Claude Opus 5.5 --- tools/donate_cpu_lib.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/donate_cpu_lib.py b/tools/donate_cpu_lib.py index ed345cb10c9..ce61495f660 100644 --- a/tools/donate_cpu_lib.py +++ b/tools/donate_cpu_lib.py @@ -16,7 +16,7 @@ # Version scheme (MAJOR.MINOR.PATCH) should orientate on "Semantic Versioning" https://semver.org/ # Every change in this script should result in increasing the version number accordingly (exceptions may be cosmetic # changes) -CLIENT_VERSION = "1.4.0" +CLIENT_VERSION = "1.4.1" # Timeout for analysis with Cppcheck in seconds CPPCHECK_TIMEOUT = 30 * 60 @@ -218,7 +218,8 @@ def compile_cppcheck(cppcheck_path): subprocess.check_call([__make_cmd, '-t:cli', os.path.join(cppcheck_path, 'cppcheck.sln'), '/property:Configuration=Release;Platform=x64'], cwd=cppcheck_path, env=build_env) else: # TODO: use CXXOPTS instead - build_cmd = [__make_cmd, __jobs, 'MATCHCOMPILER=yes', 'CXXFLAGS=-O2 -g -w'] + # -UNDEBUG: release Makefiles add -DNDEBUG. Build all versions with assertions so results can be compared. + build_cmd = [__make_cmd, __jobs, 'MATCHCOMPILER=yes', 'CXXFLAGS=-O2 -g -w -UNDEBUG'] build_env = os.environ if __make_cmd == 'mingw32-make': # TODO: MinGW will always link even if no changes are present