Crafter.Build/interfaces
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.cppm feat(agents): write AGENTS.md from a tracked AGENTS.template.md 2026-10-31 16:53:42 +01:00
Crafter.Build-Asset.cppm refactor: drop Windows host support 2026-10-02 22:03:34 +02:00
Crafter.Build-Clang.cppm fix(wasm): resolve the WASI sysroot where it is read, not in Build() 2026-11-14 23:42:47 +01:00
Crafter.Build-External.cppm refactor: carry run paths as directories, not -Wl,-rpath flags 2026-11-07 19:24:12 +01:00
Crafter.Build-Flatpak.cppm feat: install a Flatpak's data under /app/share 2026-11-09 01:55:31 +01:00
Crafter.Build-Implementation.cppm feat(build): run a build's steps on one worker per hardware thread 2026-11-13 17:59:55 +01:00
Crafter.Build-Interface.cppm feat(build): run a build's steps on one worker per hardware thread 2026-11-13 17:59:55 +01:00
Crafter.Build-Jobs.cppm feat(build): run a build's steps on one worker per hardware thread 2026-11-13 17:59:55 +01:00
Crafter.Build-Lint.cppm refactor: drop Windows host support 2026-10-02 22:03:34 +02:00
Crafter.Build-Platform.cppm feat(build): run a build's steps on one worker per hardware thread 2026-11-13 17:59:55 +01:00
Crafter.Build-Progress.cppm feat(build): run a build's steps on one worker per hardware thread 2026-11-13 17:59:55 +01:00
Crafter.Build-Script.cppm feat(script): scripts in project.cpp, run with crafter-build run 2026-10-20 19:08:26 +02:00
Crafter.Build-Shader.cppm 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.cppm feat(build): run a build's steps on one worker per hardware thread 2026-11-13 17:59:55 +01:00
Crafter.Build-Toolchain.cppm feat(cuda): link the CUDA runtime of the toolkit that compiles the .cu 2026-11-11 19:34:52 +01:00
Crafter.Build.cppm feat(build): run a build's steps on one worker per hardware thread 2026-11-13 17:59:55 +01:00