Commit 0d96a0e6 authored by Michael Pyne's avatar Michael Pyne

build-system: Don't auto-clean build dir on repeated failure.

This was needed prior to CMake (and for some time as we were porting to
CMake) so that a wedged build system had at least a hope of eventually
being corrected.

This interferes with other use cases however and since CMake is really
good nowadays at generating valid build systems, remove this behavior.
Users can still pass --refresh-build when desired.

Fixes #30.
parent a9d08e8d
Pipeline #4552 passed with stage
in 1 minute and 51 seconds
...@@ -76,9 +76,6 @@ sub needsRefreshed ...@@ -76,9 +76,6 @@ sub needsRefreshed
if ($module->getOption("refresh-build")) { if ($module->getOption("refresh-build")) {
return "the option refresh-build was set"; return "the option refresh-build was set";
} }
if (($module->getPersistentOption('failure-count') // 0) > 1) {
return "the module has failed to build " . $module->getPersistentOption('failure-count') . " times in a row";
}
if (not -e "$builddir/$confFileKey") { if (not -e "$builddir/$confFileKey") {
return "$builddir/$confFileKey is missing"; return "$builddir/$confFileKey is missing";
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment