Skip to content

Commit 7578129

Browse files
authored
Fix #15282 (donate-cpu: old Cppcheck version is compiled with -DNDEBUG but head is not, so the results can't be compared) (#9085)
1 parent a2eaeaf commit 7578129

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎tools/donate_cpu_lib.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# Version scheme (MAJOR.MINOR.PATCH) should orientate on "Semantic Versioning" https://semver.org/
1717
# Every change in this script should result in increasing the version number accordingly (exceptions may be cosmetic
1818
# changes)
19-
CLIENT_VERSION = "1.4.0"
19+
CLIENT_VERSION = "1.4.1"
2020

2121
# Timeout for analysis with Cppcheck in seconds
2222
CPPCHECK_TIMEOUT = 30 * 60
@@ -218,7 +218,8 @@ def compile_cppcheck(cppcheck_path):
218218
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)
219219
else:
220220
# TODO: use CXXOPTS instead
221-
build_cmd = [__make_cmd, __jobs, 'MATCHCOMPILER=yes', 'CXXFLAGS=-O2 -g -w']
221+
# -UNDEBUG: release Makefiles add -DNDEBUG. Build all versions with assertions so results can be compared.
222+
build_cmd = [__make_cmd, __jobs, 'MATCHCOMPILER=yes', 'CXXFLAGS=-O2 -g -w -UNDEBUG']
222223
build_env = os.environ
223224
if __make_cmd == 'mingw32-make':
224225
# TODO: MinGW will always link even if no changes are present

0 commit comments

Comments
 (0)