-
crafter-build 6.5.0
StableAll checks were successfulFlatpak / flatpak (push) Successful in 14m55sreleased this
2026-11-28 13:29:51 +00:00 | 0 commits to master since this releaseNew
- A test that sets
Test::wayland, or.Wayland()on whatAddTestreturns, runs with a headless Wayland compositor of its own instead of your session's display, so the windows it opens throughWAYLAND_DISPLAYno longer show up on your desktop. The compositor is started for that test alone and stopped when it ends; the test finds it throughWAYLAND_DISPLAY, the full path of its socket, and runs withoutDISPLAY. It is weston on its headless backend with its GL renderer, unlessCRAFTER_BUILD_COMPOSITORor the new--compositor=names another command, andhostgives such tests your own display, to watch what they draw. A test whose compositor cannot be started fails, saying why, unless it declares.Requires("tool:weston"), which skips it where weston is missing, and when a test that ran fails, crashes or times out, what its compositor printed, if anything, goes tobuild/test-logs/<name>.compositor.log, named as the test's own log is. The README's new "Tests that open windows" section has the details. - The Flatpak ships weston 16.0.2, with its headless backend, its GL renderer and its desktop shell: the compositor those tests get.
Fixes
- Two runs of
crafter-build testat once no longer write into each other's temporary files. Each test now runs withTMPDIRnaming a directory of its own, made for the run, sofs::temp_directory_path()in a test is the test's alone. Tests that staged files under fixed names there collided with another run doing the same: natively every process shares/tmp, and in the Flatpak every instance of the app shares one. What a test leaves there is removed when it passes or skips, and kept when it fails, crashes or times out, with its place in the test's log, until a later run removes it, a minute after the run that kept it ended, or after its last change to it where that run was killed. This takes a runner that passes the testTMPDIR, as running it directly and qemu-user do; under wine, which does not pass it on, and wasmtime, which passes on no environment at all, a test's temporary directory is what it was. A test that builds against a sysroot it stages there, or has crafter-build fetch a repository it stages there, keys crafter-build's cache on a path that is now a new one every run: pointXDG_CACHE_HOMEinto its temporary directory as well.
Downloads
- A test that sets
-
crafter-build 6.4.3
StableAll checks were successfulFlatpak / flatpak (push) Successful in 13m58sreleased this
2026-11-27 18:08:45 +00:00 | 9 commits to master since this releaseFixes
- In crafter-build's Flatpak,
crafter-build lintruns the rules that read a file's AST on a source that includes a header of the C++ standard library, such as<algorithm>, in a build for the host that names no libc++ directory of its own through a sysroot,CRAFTER_BUILD_LIBCXX_DIRor its flags (#46). There such a source built, and lint then ran none of those rules on it, printed'algorithm' file not foundand exited 1. The parse of such a build took the first libc++ it found under../includefrom the working directory,/usr/local/includeand/usr/include, wherever the build's compiler keeps its own (/appin the Flatpak, whose/usrhas none). It now looks for libc++ where the compiler does, and reads the default configuration files beside the compiler that the compile reads, such asclang++.cfg. - A build no longer fails to scan its sources where its compiler is reached through a link from another directory, as a
bin/clang++underCRAFTER_BUILD_LLVM_DIRmay be. clang-scan-deps, which reads what a source declares and imports since 6.4.2, looked for clang's own headers from the directory of the link, and for libc++'s too in a build for the host that names no libc++ directory of its own, and where they were not to be found from there, the scan of a source that includes a header of the C++ standard library failed, and the build with it, though its compile found the header. It is now given the compiler in the directory the compiler says it is installed in, as lint's parse is, and reads the default configuration files beside the compiler that the compile reads.
Downloads
- In crafter-build's Flatpak,
-
crafter-build 6.4.2
StableAll checks were successfulFlatpak / flatpak (push) Successful in 14m6sreleased this
2026-11-27 09:26:45 +00:00 | 14 commits to master since this releaseFixes
- What a
.cppmor.cppdeclares and imports is read by clang-scan-deps, which preprocesses the source with the command it is compiled with, where crafter-build searched its text (#45). An import in a comment that spans lines, in a string literal or in a branch that#ifleaves out no longer counts; one written with two spaces afterimport, or with a space before its semicolon, is no longer missed, which let a unit be compiled before the module it imports; and a define or a header decides an import as it does for the compile. A string literal that holdsexport module std;no longer stops the build. What was read is kept in the build directory, and read again when the source, a file it includes or its compile command changes. The refusal of interface units that import each other, and of a module built twice for one program, comes once the configuration's dependencies are built, before any of its own.cppmand.cppis compiled, where it came before the configuration built anything. - A project that exports modules and that two paths load with the same flags of its own in two orders is built once where the two orders give it one build directory. The build stopped, taking it for two builds of the project's modules.
Downloads
- What a
-
crafter-build 6.4.1
StableAll checks were successfulFlatpak / flatpak (push) Successful in 17m51sreleased this
2026-11-19 11:11:30 +00:00 | 19 commits to master since this releaseFixes
- Two sources of a configuration may have the same file name in different directories,
a/Thing.cppbesideb/Thing.cpp, and a.cmay lie beside a.cuof its name (#50). An object was named from its source's file name alone, so two such sources were compiled into one object, each over the other, and the link was given that object twice: it failed, or, in a debug build of sources that define nothing another file names, gave a program with one file's code twice and the other's not at all. A.cpp,.cor.cuis now compiled into an object named from its path: in the build directory underobjects/, at the source's path fromcfg.path, or underobjects-outside/at its whole path when it lies outside that directory, and the progress line of its compile names it by that path. An existing build directory compiles those sources once more. - A static library holds the objects of the sources its configuration lists and no others. Its archive was added to where it lay, which kept the object of a source that had left the project: once a source had been renamed, what was built on the library went on linking the object of the file under its old name.
- A configuration of many sources links. The path of every object was written into the link or archive command, which the shell that runs it is given as one argument, and Linux holds one argument to 131,072 bytes on x86_64: with objects whose paths came to more, the build ended with
popen() failed!. The link and the archive step now read their objects from a file in the build directory.
Downloads
- Two sources of a configuration may have the same file name in different directories,
-
crafter-build 6.4.0
StableAll checks were successfulFlatpak / flatpak (push) Successful in 14m4sreleased this
2026-11-15 04:02:06 +00:00 | 27 commits to master since this releaseNew
- A
project.cppcan describe several configurations that need not have anything to do with each other, such as a library and the tool that comes with it, or the programs of one repository. It definesCrafterBuildConfigurations, which returns a pointer to each of them, in place ofCrafterBuildProject, which returns one configuration as before.crafter-buildbuilds all of them in one pass, and one that fails does not stop the others.testruns the tests andrunoffers the scripts of every one the file made itself,-rruns the executable when exactly one of them is one, andinstallandbundleexport the one that is packaged as a Flatpak; with more than one to choose from they stop and name them. The README's new "Several configurations" section has the details. - A
GitProjectorLocalProjectspec picks one of a sibling's configurations by its name with.configuration, and gets the first one without it.
Fixes
- A project loaded through
GitProjectorLocalProjectkeeps the pointers itsproject.cpptook to theConfigurationit returns, as a test declared withcfg.AddTest("T").Dependencies({ &cfg })holds one. The loader moved thatConfigurationafter the project file had returned it, which left such a pointer dangling, andcrafter-build lintfollowed it for a sibling inside the project's own directory when a rule needed an AST. - A wasm32 library that two configurations of one build are built on is built once when its
project.cppsets the target without callingApplyStandardArgs. The directories such a library is built into had one name until its build started and another from then on, so a configuration that asked for the library after that did not find the build already under way and started a second one.
Downloads
- A
-
crafter-build 6.3.0
StableAll checks were successfulFlatpak / flatpak (push) Successful in 15m13sreleased this
2026-11-14 00:54:55 +00:00 | 35 commits to master since this releaseNew
- A build runs at most as many of its steps at once as the machine has hardware threads: the compiles of its sources, its shaders and assets, and its links and archives, counted together for the project and the dependencies it is built on. Until now every stale source and shader, and every asset to compress, got a thread of its own, and nothing bounded how many compilers ran side by side. An
ExternalDependency's CMake build is not among those steps and keeps that many jobs of its own, andcrafter-build test --jobs=counts the tests built and run at once, as before. A step counts as one whatever threads it starts for itself: a link runs on lld's, and an asset is compressed on threads its compressor starts. Progress has two lines for every module interface unit,Precompiling X.cppmandCompiling X.cppm, where a module and its partitions shared oneCompiling interface X.
Fixes
- A module interface unit left with its BMI and without the object made from it, or with the object of its source before an edit, is given its object by the next build. A build interrupted between the two compiler runs, or whose second run failed, left a unit like that, and every later build called it up to date: the link took the old object, or failed with
no such file or directoryuntil the source was touched. - Module interface units that import each other are refused with an error that names them: two partitions, a partition and its own module, or two modules of one configuration. A first build of them used to hang with no compiler running.
Downloads
- A build runs at most as many of its steps at once as the machine has hardware threads: the compiles of its sources, its shaders and assets, and its links and archives, counted together for the project and the dependencies it is built on. Until now every stale source and shader, and every asset to compress, got a thread of its own, and nothing bounded how many compilers ran side by side. An
-
crafter-build 6.2.0
StableAll checks were successfulFlatpak / flatpak (push) Successful in 14m29sreleased this
2026-11-11 19:18:33 +00:00 | 43 commits to master since this releaseNew
- CUDA sources compile for the GPU architecture
cfg.cudaArchnames, nvcc's-arch, which--cuda-arch=andCRAFTER_BUILD_CUDA_ARCHset whereproject.cppcallsApplyStandardArgs. It defaults tonative, the GPUs of the machine that builds, asmarchdefaults to its CPU; it wassm_89for every build. A program built fornativecarries no PTX for newer GPUs, so build one that runs elsewhere with--cuda-arch=all-major;crafter-build bundlewarns of a bundle whose CUDA code is built fornative. Another architecture builds in a directory of its own, and so doesnativeon other GPUs. The README's new CUDA section has the details. - A configuration with CUDA sources links the static CUDA runtime of the toolkit whose nvcc compiles them, where the toolkit's
lib64holds it, and so does whatever is built on it:cfg.linkFlagsthen needs no-lcudartand no path into the toolkit, which inside the Flatpak lies under/run/hostfor the host's/usr/local/cuda.crafter-build --versionprints it next to nvcc.
Fixes
- CUDA sources compile in the Flatpak. With the
PATHits manifest sets, every build withcfg.cudathere stopped atnvcc: command not found, because thatPATHdoes not hold the host's toolkit. crafter-build now looks for nvcc itself: in$CUDA_PATH/bin, else in/opt/cuda/binor the host's/usr/local/cuda/bin, else in an absolute entry ofPATH. A build that finds none says where it looked, andcrafter-build --versionprints the one it found. - A
.cucompiles again when a header it includes changes, as a C or C++ source does. It used to compile again only when the.cuitself changed, and kept the object built from the old header.
Downloads
- CUDA sources compile for the GPU architecture
-
crafter-build 6.1.0
StableAll checks were successfulFlatpak / flatpak (push) Successful in 13m51sreleased this
2026-11-09 01:14:48 +00:00 | 53 commits to master since this releaseNew
- An executable can be packaged as a Flatpak of its own, so it runs outside crafter-build's sandbox: with
cfg.packaging = Packaging::Flatpak, or--packaging=flatpakfor one build of aproject.cppthat callsApplyStandardArgs, its bin directory holds the app'sfiles/, with the program, the libc++, libc++abi and libunwind it links, and anything else it needs from the libraries it is built on, which-rruns it against.cfg.flatpaksets the app-id, the runtime (the Platform or the Sdk, at the branch crafter-build runs on), the sandbox's permissions as finish-args, a desktop entry, metainfo, icons and data under/app/share. A library's permissions reach every program built on it. Without packaging, an executable's bin directory holds what it did before. The README's new "Flatpak output" section has the details. crafter-build installbuilds the project and installs its Flatpak for the current user, andcrafter-build bundlebuilds it into a single.flatpakfile, whichflatpak install --userinstalls elsewhere. Both make the app with the host'sflatpak build-finish, which writes its metadata and what the host sees of it by flatpak's own rules and refuses a permission flatpak does not have, and print the permissions, with where each came from.cfg.flatpak.modulesnames flatpak-builder module files for what the app needs in/appbesides the program; with any, the host's flatpak-builder makes the app and copies the program in last, so it is not compiled again.- The Flatpak has the
org.freedesktop.Flatpakpermission, forinstallandbundleto run the host's flatpak and flatpak-builder, whichflatpak updatelists among the app's new permissions before it asks to proceed. Nothing else in crafter-build uses it. It lets anything running in the sandbox, aproject.cppand the programs-randteststart included, run commands on the host, which--filesystem=hostalready let them arrange by writing files the host runs, such as~/.bashrc.
Fixes
- On Linux, a program built on a shared library (
ConfigurationType::LibraryDynamic) starts: its link records where the library is. It used to fail at start withcannot open shared object file. - A compile no longer takes headers from what a build left in a dependency's
bin/orbuild/: the search for theinclude/directories in a dependency's tree went into them as well, so the headers of a flatpak-builder or CMake tree there came before the system's. A header kept under a directory namedbinorbuildis no longer found that way; add-Iwith its directory to thecfg.compileFlagsof the projects that include it. crafter-build format --check formatchecks the rules named "format" and writes nothing: it read the secondformatas the verb again, ran every rule and rewrote the sources. A word repeated after any verb is a glob now, sotest testruns the tests matching "test".- A wasm test declared with
AddTestruns under wasmtime. It used to fail withfailed to open wasm module, because the test runner looked for the program without its.wasm.
Downloads
- An executable can be packaged as a Flatpak of its own, so it runs outside crafter-build's sandbox: with
-
crafter-build 6.0.0
StableAll checks were successfulFlatpak / flatpak (push) Successful in 12m12sreleased this
2026-11-02 17:55:06 +00:00 | 73 commits to master since this releaseNew
- The Flatpak carries lldb, with
lldb-server,lldb-dapandlldb-mcp, from the same LLVM build as the compiler, so programs that-rand the test runner start can be debugged inside the sandbox they run in. The README's new Debugging section says how, includingflatpak enterto reach a program that is already running. - The Flatpak carries the Khronos Vulkan validation layer, the Vulkan SDK release of the runtime's own loader.
VK_INSTANCE_LAYERSorVK_LOADER_LAYERS_ENABLEturns it on from the environment, andVK_KHRONOS_VALIDATION_GPUAV_ENABLE=1adds GPU-assisted validation. A layer installed on the host cannot stand in:flatpak runclearsVK_LAYER_PATHandVK_ADD_LAYER_PATH. - The Flatpak carries the SPIRV-Tools programs (
spirv-val,spirv-opt,spirv-disand the rest), so a test that requirestool:spirv-valruns inside it instead of being skipped. - The alias in the README's install commands passes
--die-with-parent, which ends the sandbox when itsflatpak runprocess dies and, for a command typed at a bash or zsh prompt, when that shell does. Without it, killingflatpak runleaves a build writing intobin/andbuild/and a program started with-rrunning. An alias set up from an earlier README does not have it.
Fixes
- The
.flatpakrefattached to a release carries the repository's signing key. Releases 2.0.0 to 5.0.0 attach one with a placeholder in its place, and installing from it fails withGPG: Unable to export keys; the one on flatpak.catcrafts.net has the key.
Breaking
- Master has no builds of its own any more: the beta branch gets no new builds and the rolling "Latest master build" release is gone, and every change reaches users as a release on the stable branch. Beta's last build is marked end-of-life, and the next
flatpak updateof a beta installation says so: install stable withflatpak install catcrafts net.catcrafts.CrafterBuild//stableand remove beta withflatpak uninstall net.catcrafts.CrafterBuild//beta.
Downloads
- The Flatpak carries lldb, with
-
crafter-build 5.0.0
StableAll checks were successfulFlatpak / flatpak (push) Successful in 11m53sreleased this
2026-10-31 23:19:53 +00:00 | 86 commits to master since this releaseFixes
- A mingw build no longer sees the Linux system's headers and libraries. Inside the Flatpak the mingw-w64 prefix is the host's /usr, and it was clang's
--sysroot, so clang searched /usr/include and /usr/lib for the Windows build as well: libstdc++ found glibc'ssys/single_threaded.hand hadshared_ptrread__libc_single_threaded, and every program that used one failed to link.CRAFTER_MINGW_DIR=/usrdid the same outside the Flatpak. A prefix that also holds a Linux system (the host's /usr, or any prefix whose include/ has a C library's features.h) now reaches clang through a view of its mingw-w64 directories in the cache, and compiler messages still name its headers where they are installed. A prefix that holds mingw-w64 alone is the sysroot as before, so Windows libraries installed into its include/ and lib/ are found (#43). - Units that import a std module rebuilt in place, after a libc++ update or a mingw-w64 update under the same compiler, are compiled again. They used to be relinked unchanged.
- A CMake external whose configure inputs changed, such as another compiler or
--sysroot, is built again from an empty build directory. It used to be reconfigured in place, keeping the objects and check results of the old configure, so a mingw external built by 4.0.0 would have kept failing to link after the fix above. - Configurations that compile the std module differently no longer share one. Two that differed only in
-mtune(a project built withCRAFTER_BUILD_MTUNEset, next to its own project.cpp) or only in sysroot took turns rebuilding it, and every module built against it, on every run. crafter-build lintfails, and says why, when a configuration's compile command cannot be assembled or its std module cannot be built. Its files used to pass every rule that needs an AST as if they were clean.
Breaking
Toolchain::mingwSysrootis nowmingwPrefix, besidemingwPrefixIsSystem, because clang no longer always gets the prefix itself. A project.cpp that passes the mingw sysroot to a command of its own callsMingwSysroot(); passingmingwPrefixbrings the bug above back for a prefix like /usr.- The std module's cache directory is now keyed on every flag it is compiled with, and every build directory on the std module it imports, so the first build of each project after updating starts in fresh directories and compiles everything, as after a compiler update.
crafter-build cleanremoves the old build directories; the old std module directories stay in the cache until it is cleared by hand.
Downloads
- A mingw build no longer sees the Linux system's headers and libraries. Inside the Flatpak the mingw-w64 prefix is the host's /usr, and it was clang's