Crafter.Build/implementations
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jorijn van der Graaf 1ddba745cf
fix(wasm): resolve the WASI sysroot where it is read, not in Build()
A wasm32 configuration that names no sysroot is built against the
toolchain's WASI sysroot. ApplyStandardArgs stores that sysroot in
cfg.sysroot, for a project file that calls it. For a configuration
whose project file sets the target itself, Build() stored it on its way
in. VariantId hashes the sysroot, so such a configuration had one
BuildDir, BinDir and PcmDir until its build started and others from
then on.

A build pass records each dependency's build under its PcmDir, and a
configuration asks for a dependency by the PcmDir it has at that moment.
A wasm32 library that two configurations of one pass are built on was
recorded under the first directory for the one that asked first. One
that asked after the library's build had started asked under the second
directory, found nothing there, and built the library again.

Configuration::ResolvedSysroot now gives what cfg.sysroot comes to: the
toolchain's WASI sysroot for a wasm32 configuration that names none,
cfg.sysroot as it stands for every other, as ResolvedPackaging gives
what `packaging` comes to. VariantId, the std module's flags, key and
source, the compile and link commands and the check that refuses a wasm
build without a usable sysroot read it, and Build() no longer stores the
sysroot in the configuration. ApplyStandardArgs still does: what a
project file reads in cfg.sysroot after the call stays what it was.

The directories a build writes keep their names: a configuration that
named no sysroot was built into the ones its VariantId named once
Build() had stored it, which are the ones it names now.

StdPcmFlags takes the toolchain, as StdPcmKey does, so that a VariantId
asked for under a toolchain resolves the sysroot under that one.
2026-11-14 23:42:47 +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 fix(wasm): resolve the WASI sysroot where it is read, not in Build() 2026-11-14 23:42:47 +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 fix(wasm): resolve the WASI sysroot where it is read, not in Build() 2026-11-14 23:42:47 +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