You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
build.mcpp is not recompiled when a header it includes by a quoted path changes #991
Version: mcpp 2026.11.20.1. Windows 11 x64 (msvc@system, MSVC 19.44.35230)
and Linux x86_64 (mcpp's default gcc@16.1.0).
What happens
A build.mcpp that includes a header of its own package by a quoted path is
compiled once. When that header changes, mcpp build / mcpp run keep the old
program and its directives; the package is configured from stale output with no
notice. docs/30 lists what a program's identity covers ("the engine version, the
host toolchain, the standard, the program's text, and every package of its
graph"); a file the program's translation unit includes from its own package
tree is not among them.
Reproduce
# mcpp.toml
[package]
name = "repro"version = "0.1.0"standard = "c++23"
[toolchain]
windows = "msvc@system"
Further edits to the header (three, four, ...) keep printing the first value.
Deleting target/.build-mcpp alone does not help: the old result comes back
(from the build cache, as far as I can tell). Deleting all of target/ does: the
next run prints the current value. Same on Windows and Linux.
Expected
Either track the build program's include dependencies (the depfile / /sourceDependencies record the main build already reads) as part of its
identity, or warn when a quoted include resolves to a file outside the
program's graph, pointing at [build-dependencies].
Workaround
Put the header in a header-only path package and name it in [build-dependencies]. A path package's content is part of the program's
identity, so an edit recompiles and reruns the program.
Released in mcpp 2026.11.21.1 (#984): the files a build program's compile reads are observed from the sub-build's dependency records, recorded with the program and compared by size and time, then content. An edit of a header the program includes by a quoted path compiles and runs it again, also after target/.build-mcpp is deleted; a declared input (rerun_if_changed) is compared the same way.
Activity
2026.11.21.1: the test and CI design (mtest 0.11), the home's unit ca…
Sunrisepeak commentedon Nov 21, 2026
xlings update mcpp -yto verifyspeak-agent commentedon Nov 22, 2026
Released in mcpp 2026.11.21.1 (#984): the files a build program's compile reads are observed from the sub-build's dependency records, recorded with the program and compared by size and time, then content. An edit of a header the program includes by a quoted path compiles and runs it again, also after
target/.build-mcppis deleted; a declared input (rerun_if_changed) is compared the same way.