From 74f1db3426bf49ea8e55e51de9555d3ef1ac21c3 Mon Sep 17 00:00:00 2001 From: Melroy van den Berg Date: Wed, 17 Dec 2025 18:09:12 +0100 Subject: [PATCH 1/4] Better describe python venv Updated donation instructions for CPU usage on Linux/MacOS. --- readme.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/readme.md b/readme.md index a902f9fd2ef..ce769b34d1d 100644 --- a/readme.md +++ b/readme.md @@ -20,12 +20,14 @@ A manual is available [online](https://cppcheck.sourceforge.io/manual.pdf). Cppcheck is a hobby project with limited resources. You can help us by donating CPU (1 core or as many as you like). It is simple: 1. Download (and extract) Cppcheck source code. - 2. Run: + 2. Run (Linux/MacOS example): ``` cd cppcheck/ - virtualenv .env - .env/bin/pip install -r tools/donate-cpu-requirements.txt - .env/bin/python tools/donate-cpu.py + python3 -m venv ~/.venv_cppcheck + source ~/.venv_cppcheck/bin/activate + + pip install -r tools/donate-cpu-requirements.txt + ./tools/donate-cpu.py ``` The script will analyse debian source code and upload the results to a cppcheck server. We need these results both to improve Cppcheck and to detect regressions. From 1b8ffdf923cdab653b49d38ef410493f026ace7c Mon Sep 17 00:00:00 2001 From: Melroy van den Berg Date: Wed, 17 Dec 2025 20:59:36 +0100 Subject: [PATCH 2/4] Update readme.md Co-authored-by: autoantwort <41973254+autoantwort@users.noreply.github.com> --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index ce769b34d1d..8e29f8266ff 100644 --- a/readme.md +++ b/readme.md @@ -23,7 +23,7 @@ Cppcheck is a hobby project with limited resources. You can help us by donating 2. Run (Linux/MacOS example): ``` cd cppcheck/ - python3 -m venv ~/.venv_cppcheck + python3 -m venv .venv source ~/.venv_cppcheck/bin/activate pip install -r tools/donate-cpu-requirements.txt From f417dff42eb10dca48e91051c782a427efa58a52 Mon Sep 17 00:00:00 2001 From: Melroy van den Berg Date: Thu, 18 Dec 2025 16:56:19 +0100 Subject: [PATCH 3/4] Source correct file now Co-authored-by: autoantwort <41973254+autoantwort@users.noreply.github.com> --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 8e29f8266ff..ed2c66a7656 100644 --- a/readme.md +++ b/readme.md @@ -24,7 +24,7 @@ Cppcheck is a hobby project with limited resources. You can help us by donating ``` cd cppcheck/ python3 -m venv .venv - source ~/.venv_cppcheck/bin/activate + source .venv/bin/activate pip install -r tools/donate-cpu-requirements.txt ./tools/donate-cpu.py From f5b0126ab5d51a2fe49ba05a3f16a004bf3870c0 Mon Sep 17 00:00:00 2001 From: Melroy van den Berg Date: Thu, 18 Dec 2025 18:35:21 +0100 Subject: [PATCH 4/4] Explain the -j flag Clarified instructions for donating CPU resources. --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index ed2c66a7656..d5378512683 100644 --- a/readme.md +++ b/readme.md @@ -17,7 +17,7 @@ A manual is available [online](https://cppcheck.sourceforge.io/manual.pdf). ## Donate CPU -Cppcheck is a hobby project with limited resources. You can help us by donating CPU (1 core or as many as you like). It is simple: +Cppcheck is a hobby project with limited resources. You can help us by donating CPU (1 core, which is the default, or as many as you like. Use the `-j` flag to use more cores). It is simple: 1. Download (and extract) Cppcheck source code. 2. Run (Linux/MacOS example):