Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mcpp.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mcpp"
version = "0.0.57"
version = "0.0.58"
description = "Modern C++ build & package management tool"
license = "Apache-2.0"
authors = ["mcpp-community"]
Expand Down
9 changes: 8 additions & 1 deletion src/build/execute.cppm
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,14 @@ bool is_stale_ninja_failure(std::string_view output) {
return output.find("loading 'build.ninja'") != std::string_view::npos
|| output.find("loading build.ninja") != std::string_view::npos
|| output.find("unknown target") != std::string_view::npos
|| output.find("manifest 'build.ninja' still dirty") != std::string_view::npos;
|| output.find("manifest 'build.ninja' still dirty") != std::string_view::npos
// A cached build.ninja can reference an input (e.g. a dependency
// source under the registry) that moved or was reinstalled since the
// graph was generated — the build fingerprint does not yet cover
// registry dep state, so the stale graph is reused. Ninja then aborts
// with this signature. Treat it as stale → drop to a full regen
// instead of hard-failing and forcing the user to `mcpp clean`.
|| output.find("missing and no known rule to make") != std::string_view::npos;
}

// Compile a prepared BuildContext. Shared between `mcpp build` and `mcpp run`
Expand Down
2 changes: 1 addition & 1 deletion src/toolchain/fingerprint.cppm
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import mcpp.toolchain.detect;

export namespace mcpp::toolchain {

inline constexpr std::string_view MCPP_VERSION = "0.0.57";
inline constexpr std::string_view MCPP_VERSION = "0.0.58";

struct FingerprintInputs {
Toolchain toolchain;
Expand Down
Loading