Files
PartoufandClaude Opus 5 6ddac3f09a refactor: extract a build system driver from BaseCompiler.cmake()
Adding support for other build systems (Cargo, Maven, fpm, ...) is
currently blocked by CMake being special-cased at every layer. This is
the first step: pull the build-system-specific parts of the ~250 line
BaseCompiler.cmake() out behind a driver interface, with no change in
behaviour.

BaseCompiler.buildProject() now orchestrates everything that is not
specific to a build system -- temp dirs, caching, the compilation queue,
remote execution, afterCompilation and cleanup -- and CMakeBuildSystem
supplies the rest. The two hardcoded build steps became a loop over
BuildPlan.steps, each carrying its own name, executable, arguments, exec
parameters and failure placeholder. cmake() is now a delegate onto
buildProject(), so the API handler, the SQS worker and subclass
overrides are untouched.

The per-compiler hooks (getExtraCMakeArgs, getCMakeExtToolchainParam,
getCmakeBaseEnv, createCmakeExecParams) deliberately keep their
CMake-specific names and are now called by CMakeBuildSystem rather than
the orchestrator; they are CMake concepts and a Cargo driver will want
different ones. win32-vc, llvm-mos, cc65 and beebasm are unchanged.

Generalised in passing: writeAllFilesCMake() -> writeProjectFiles(),
taking the manifest filename, and getCmakeCacheKey() ->
getBuildProjectCacheKey(), which sets `api` from the driver id -- still
'cmake' for CMake, so cached builds survive.

docs/BuildSystems.md describes how CMake is wired in today and the
incremental plan for the remaining phases, with links to the issues
asking for Maven, fpm and Cargo support.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-05 15:13:52 +02:00
..
2026-07-14 08:46:10 +01:00
2021-10-05 01:45:05 +02:00
2019-08-21 01:26:16 +02:00
2025-01-29 10:41:03 -06:00
2021-09-13 20:22:27 +02:00
2024-10-27 15:28:38 +02:00
2024-10-26 17:42:22 +02:00
2024-03-08 22:25:09 -06:00
2024-03-08 22:25:09 -06:00
2024-03-08 22:25:09 -06:00
2026-02-08 12:50:20 +01:00
2024-03-08 22:25:09 -06:00
2024-03-08 22:25:09 -06:00
2025-07-28 10:34:46 -05:00