Pick the right bloat entry point per platform. On Linux/macOS: `bash bloat esp32s3 --no-summary`. On Windows: `uv run ci/bloat.py esp32s3 --no-summary` — there is no `bloat.bat` shim, so we invoke the underlying Python entry point directly (the bash wrapper just does `uv run ci/bloa
()
| 243 | |
| 244 | |
| 245 | def _run_bloat_cmd() -> list[str]: |
| 246 | """Pick the right bloat entry point per platform. |
| 247 | |
| 248 | On Linux/macOS: `bash bloat esp32s3 --no-summary`. |
| 249 | On Windows: `uv run ci/bloat.py esp32s3 --no-summary` — there is no |
| 250 | `bloat.bat` shim, so we invoke the underlying Python entry point |
| 251 | directly (the bash wrapper just does `uv run ci/bloat.py "$@"`). |
| 252 | See #2935. |
| 253 | """ |
| 254 | import os |
| 255 | |
| 256 | args = ["esp32s3", "--no-summary"] |
| 257 | if os.name == "nt": |
| 258 | return ["uv", "run", "ci/bloat.py", *args] |
| 259 | return ["bash", "bloat", *args] |
| 260 | |
| 261 | |
| 262 | _LOG_DIR = PROJECT_ROOT / ".build" / "measure-logs" |