Crafter.Build/implementations
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jorijn van der Graaf 8baf14068e
fix(external): keep a sibling project's Configuration where it was built
A project file may take pointers to the Configuration it returns. The
usual one belongs to a test that links the library the file describes,
cfg.AddTest("T").Dependencies({ &cfg }): where the compiler constructs
the local the file returns in place of the return value, &cfg is the
address of what CrafterBuildProject returns.

For the project crafter-build is pointed at, that address stays good:
Run() initialises its Configuration with the call. For a project loaded
through GitProject or LocalProject it did not. LoadProjectFromRoot
assigned the call's result to a local, and from there the Configuration
was moved into the project cache, so what a consumer got was not the
object the project file had built, and every pointer the file had taken
to that one pointed at an object that no longer existed. RunLint follows
such a pointer: for a sibling whose path lies inside the project's
directory it works out the compile command of each of the sibling's
tests when a rule needs an AST, and GetCompileCommand walks the
dependencies of the configuration it is given.

LoadProjectFromRoot now makes the Configuration on the heap with the
call as its initialiser, and StoreProject takes the unique_ptr, so the
Configuration is constructed where the cache keeps it and is never
moved.
2026-11-14 20:19:19 +01:00
..
Crafter.Build-Agents.cpp feat(agents): write AGENTS.md from a tracked AGENTS.template.md 2026-10-31 16:53:42 +01:00
Crafter.Build-Asset.cpp linting 2026-07-23 01:24:42 +02:00
Crafter.Build-Clang.cpp feat(build): run a build's steps on one worker per hardware thread 2026-11-13 17:59:55 +01:00
Crafter.Build-External.cpp fix(external): keep a sibling project's Configuration where it was built 2026-11-14 20:19:19 +01:00
Crafter.Build-Flatpak.cpp feat: install a Flatpak's data under /app/share 2026-11-09 01:55:31 +01:00
Crafter.Build-Implementation.cpp feat(build): run a build's steps on one worker per hardware thread 2026-11-13 17:59:55 +01:00
Crafter.Build-Interface.cpp feat(build): run a build's steps on one worker per hardware thread 2026-11-13 17:59:55 +01:00
Crafter.Build-Jobs.cpp feat(build): run a build's steps on one worker per hardware thread 2026-11-13 17:59:55 +01:00
Crafter.Build-Lint.cpp feat: lay an executable out as the files/ of a Flatpak 2026-11-08 22:48:42 +01:00
Crafter.Build-Platform.cpp feat(build): run a build's steps on one worker per hardware thread 2026-11-13 17:59:55 +01:00
Crafter.Build-Progress.cpp refactor: drop Windows host support 2026-10-02 22:03:34 +02:00
Crafter.Build-Script.cpp fix: rebuild and relink on what changed, submodules at their revisions, and mingw found where it is 2026-10-20 20:20:29 +02:00
Crafter.Build-Shader.cpp fix: rebuild and relink on what changed, submodules at their revisions, and mingw found where it is 2026-10-20 20:20:29 +02:00
Crafter.Build-Test.cpp feat(cuda): make the GPU architecture configurable, native by default 2026-11-11 19:34:52 +01:00
Crafter.Build-Toolchain.cpp feat(cuda): link the CUDA runtime of the toolkit that compiles the .cu 2026-11-11 19:34:52 +01:00
main.cpp refactor: drop Windows host support 2026-10-02 22:03:34 +02:00