Crafter.Build/implementations
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jorijn van der Graaf 090d8f6363
fix(build): scan sources with the compiler where it is installed
clang-scan-deps, which reads what a .cppm or .cpp declares and imports
since 6.4.2, builds a clang driver of its own from the compile command
it is given, and that driver looks for clang's own headers, and in a
build for the host whose command names no libc++ directory for libc++'s
too, from the directory of the command's first word: the toolchain's
clangxx, looked up on PATH where it is a bare name, and taken as it
stands where it is a link, whatever the command says of canonical
prefixes. Where clangxx is a link from another directory, as a
CRAFTER_BUILD_LLVM_DIR whose bin/clang++ links into another installation
makes it, and the command's last prefix flag is not
-no-canonical-prefixes, that directory need not lead to either, and the
scan of a source that includes a header of the C++ standard library then
failed, and the build with it, on "'stddef.h' file not found" or on the
header it included, though the compile, which takes itself to be where
the link leads, found them. It is the parse of issue #46 over again, in
the scan.

The scan is now given the compile command with
Toolchain::InstalledClangxx(command) as its first word, the compiler
where clang started with that command takes itself to be, as lint's
parse is given it: in the directory its --version names, or, for a
command whose last prefix flag is -no-canonical-prefixes, in the
directory of clangxx as written, from which such a compile looks and
from which the scan of it looked before. That directory is also where
the driver looks for its default configuration files, clang++.cfg among
them, so for any other command the scan now reads the ones beside the
compiler, which the compile reads, where it read any beside a link. What
is kept of a scan still records the compile command itself, which
decides when a source is scanned again: what the source is compiled with
has not changed. AGENTS.template.md now says which of the two commands
is which.
2026-11-27 16:16:38 +01:00
..
Crafter.Build-Agents.cpp feat: let a project file return several configurations 2026-11-15 02:16:06 +01:00
Crafter.Build-Asset.cpp linting 2026-07-23 01:24:42 +02:00
Crafter.Build-Clang.cpp fix(build): scan sources with the compiler where it is installed 2026-11-27 16:16:38 +01:00
Crafter.Build-External.cpp feat: let a project file return several configurations 2026-11-15 02:16:06 +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 fix(build): read what a source declares and imports with clang-scan-deps 2026-11-27 09:25:53 +01:00
Crafter.Build-Interface.cpp fix(build): read what a source declares and imports with clang-scan-deps 2026-11-27 09:25:53 +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 fix(lint): look for libc++ where the compiler does 2026-11-27 16:16:38 +01:00
Crafter.Build-Platform.cpp feat: let a project file return several configurations 2026-11-15 02:16:06 +01:00
Crafter.Build-Progress.cpp refactor: drop Windows host support 2026-10-02 22:03:34 +02:00
Crafter.Build-Script.cpp feat: let a project file return several configurations 2026-11-15 02:16:06 +01: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 fix(build): read what a source declares and imports with clang-scan-deps 2026-11-27 09:25:53 +01:00
Crafter.Build-Toolchain.cpp fix(lint): look for libc++ where the compiler does 2026-11-27 16:16:38 +01:00
main.cpp refactor: drop Windows host support 2026-10-02 22:03:34 +02:00