6.4.0 lets a project.cpp return several configurations from
CrafterBuildConfigurations, which are all built, lets a GitProject or
LocalProject spec pick one of a sibling's configurations by name, keeps
the Configuration of a project loaded through either of them where its
project file built it, and builds a wasm32 library that two
configurations of one build share once when its project file sets the
target itself.
A minor, by the version rule: the notes have New and Fixes and nothing
Breaking.
The README's opening and the start of "Writing a project.cpp" say that a
project file returns one configuration or several, and so does the
description in the Flatpak's metainfo. The README has a "Several
configurations" section in "Writing a project.cpp":
CrafterBuildConfigurations with an example, how the configurations it
returns have to be kept, and what a build, test, run, lint, format, -r,
install and bundle do with several. "Dependencies" says how a GitProject
or LocalProject spec picks one of a sibling's configurations, and that a
`#pragma crafter dependency` gets the first; its sentences on the args a
sibling gets, on where to make a spec and on IsTopLevelProject() speak
of a project file's entry point, where they named CrafterBuildProject.
"Dependency notes for agents" says how the dependencyNotes of several
configurations combine, and which runs leave AGENTS.md alone now that a
list of configurations can be refused before a build starts: its
sentence on that said that a build that fails still has the notes, and
named an `install` or `bundle` refused before building as the one
refusal that writes none. The table of ScriptContext says that a
script's `project` is the configuration it is declared on.
6.3.0 holds a build to as many steps at once as the machine has
hardware threads, where every stale shader, asset to compress, C, CUDA
and C++ unit got a thread of its own and nothing bounded how many ran
at once. It makes the object of a module interface unit that an earlier
build left with its BMI alone, or with the object of before an edit,
and it refuses interface units of one configuration that import each
other, whose first build hung.
A minor, by the version rule: the notes have New and Fixes and nothing
Breaking, and Jorijn's "6.3.0, that's internal and not user facing"
settled it. What he was asked about: the range takes Compile() off
Module, ModulePartition and Implementation, and the `compiled` flag off
the first two, all of which interfaces/ exports. They are what Build()
itself compiled a unit with, and none of the 35 project.cpp files of
this checkout and the ones beside it reads the flag or calls Compile().
6.2.0 makes CUDA sources compile in the Flatpak: crafter-build finds
nvcc itself, under CUDA_PATH, /opt/cuda or the host's /usr/local/cuda,
or in an absolute entry of PATH, where it used to run whatever the
sandbox's PATH gave, which never holds the host's toolkit, and it links
that toolkit's static CUDA runtime itself where the toolkit's lib64
holds it. The GPU architecture CUDA sources compile for is configurable
and native by default, and a .cu compiles again when a header it
includes changes.
A minor, by the version rule: the notes have New and Fixes and nothing
Breaking, and Jorijn's "6.2.0 is fine" settled it. The default
architecture moves from sm_89, which carries its PTX, to native, which
carries none, so a program built for native has no PTX for a GPU of a
newer architecture. That is under New rather than Breaking because no
Flatpak release compiled a .cu with the PATH its manifest sets: each ran
a bare nvcc in the sandbox, whose PATH, /app/bin:/usr/bin, holds no
toolkit, so a project had to set another PATH itself to compile one. A
program for other machines takes another architecture, such as
--cuda-arch=all-major, as the notes say. A project that names -lcudart
in cfg.linkFlags keeps building, with its shared runtime first on the
link line. VariantId changes for no configuration without CUDA sources
but one built with --cuda-arch=, which was a project argument and is
crafter-build's own now; a configuration with CUDA sources builds once
in new bin/ and build/ directories, keyed by its architecture, for
native by crafter-build's reading of the machine's GPUs, and by its
nvcc.
6.1.0 lets a program crafter-build builds run outside its sandbox: an
executable can be packaged as a Flatpak of its own, installed with
`crafter-build install` or bundled into a file with
`crafter-build bundle`, with flatpak-builder modules and data under
/app/share where it needs them. The Flatpak gains the
org.freedesktop.Flatpak permission those two verbs run the host's
flatpak with. It also fixes programs built on a shared library on Linux,
which did not start, compiles that took headers from what a build left
in a dependency's bin/ or build/, `format --check format`, which rewrote
the sources, and wasm tests declared with AddTest, which never ran.
A minor, by the version rule: the notes have New and Fixes and nothing
Breaking. Default still builds an executable as linked, and VariantId
and the bin/ layout change for nothing that is not packaged as a
Flatpak, but for a build given --packaging=, which moves to other bin/
and build/ directories: the argument was a project arg, hashed into
VariantId, and is a standard arg now, for dependencies too. `install`,
`bundle` and `--packaging=` were project args until this range made them
two verbs and a standard arg, and no sibling project.cpp reads any of
them: the only `install` in one is the name of a `run` script, which
`run` takes before any verb. `test test`, `lint lint` and
`format format` now take the second word as a glob. The include walk
leaves out every directory named bin or build now, and that is under
Fixes rather than Breaking: those are the names crafter-build gives what
it writes, and in the Crafter repositories and the dependencies
crafter-build has cloned, the one #include that needs a header found
only there is glslang's, in a source its own CMake build compiles, not
crafter-build. The permission is listed under New, and `flatpak update`
lists it before it asks to proceed.
The release of this push and of everything on master since 5.0.0: lldb,
the Khronos validation layer and the SPIRV-Tools programs in the
Flatpak, --die-with-parent in the README's alias, and the release
.flatpakref with the repository's key in it. Its Breaking item, the end
of beta and of the rolling release, makes it a major.
The fix for #43, a mingw build that saw the host's glibc headers and
Linux libraries through a prefix like /usr as clang's sysroot, and what
the review of it brought along: units that recompile after a std module
rebuilt in place, CMake externals built again when their configure
inputs change, std modules keyed on every flag they are compiled with,
and lint that fails rather than passing files it could not parse. A
major, because Toolchain::mingwSysroot is now mingwPrefix and every
build directory moves once.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
AGENTS.md written from a tracked AGENTS.template.md, so the dependency
notes no longer change a file the project commits. A major, because a
project that kept 3.0.0's notes section in its committed AGENTS.md
stops getting it updated until it moves to the template: the rule is a
major whenever the notes have a Breaking section, even one that no
build fails over.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
C++ exceptions in wasm builds, scripts, dependency notes, the browser
runtime's exit and park, and mingw found where it is; the fixes since
2.2.0; and the two changes that need a look when upgrading: the wasm
sysroot and engine requirements, and siblings inheriting the loading
project's args. A major, because a wasm project.cpp with
-fno-exceptions or an older sysroot, and a project.cpp whose siblings
relied on getting no args, build differently or not at all on this
release.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
CI takes the newest <release> as the notes of a tag and refuses a tag
that does not match it. 2.2.0 covers what changed since 2.1.0: Shader
entries with per-entry defines and a named output variant, sysroot
compiles against the sysroot's own libc++ headers, a project.so stamp
that hashes every part of the host build, and the vendored json.hpp
removed.
The variant API is what catcrafts.net's deploy needs: Crafter.Graphics
master has used it since 2026-10-06, and a stable Flatpak that lacks it
cannot build the site.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
CI takes the newest <release> as the notes of a tag and refuses a tag
that does not match it. 2.1.0 covers what changed since 2.0.0: the
bundled LLVM 23.1.2, build outputs kept per compiler, and the std
module source chosen by the sysroot's libc++ release.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Every non-tag build called itself 0.0.0-dev+<hash>, a placeholder that
said nothing about which release it came after and put a `+` in the
bundle's download URL. A master build now uses `git describe`, as a
local checkout already does: 2.0.0-3-g21746b1 is three commits past
2.0.0. The placeholder remains only for history that has no tag yet.
Three more things the tag path needed before its first run. The
forgejo-release action takes the notes text in `release-notes` and a
path in `release-notes-file`; the workflow passed a path to the former,
so the release body would have been the file name. The tag filter is
spelled with globs so it reads the same as a workflow pattern or a plain
glob. Python, used to extract the notes from the metainfo, was only in
the container as somebody else's dependency and is now listed. The
2.0.0 entry carries the date it is tagged on.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
packaging/flatpak/ holds the manifest for net.catcrafts.CrafterBuild and
its side files. The runtime is the Freedesktop Sdk, not the Platform: a
build tool needs glibc's headers and crt objects, gcc's libgcc_s, cmake,
ninja, git and python at run time. Everything compiler-shaped is ours
under /app, built from one LLVM 22.1.8 source tree: clang, lld, libclang,
libc++ with its std module, compiler-rt for the host and for wasm32, the
WASI sysroot (wasi-sdk 34 in sysroot-only mode, driven by the clang just
built) and wasmtime for running the result. One tree means the modules
crafter-build builds and the compiler that consumes them cannot drift
apart, and the toolchain resolver finds all of it beside the executable
with no configuration.
The crafter-build module runs the bootstrap, the self-host build and the
test suite inside the sandbox, so a Flatpak that installs has passed the
suite with the toolchain it ships. CRAFTER_BUILD_MARCH is x86-64-v2 for
the shipped binary; user projects keep -march=native.
WasmHelloRuns compiles a fixture for wasm32-wasip1 and runs it under
wasmtime. The existing wasm tests only inspect generated files, so this
is the one that proves the sysroot, the std module for wasm and wasm-ld
work together; it skips where the sysroot or wasmtime is missing.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>