mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
Ninja: depfile: keep rules without dependencies
To avoid repeated executions of custom command actions, depfile file with rules without dependencies must be preserved. Fixes: #25428
This commit is contained in:
@@ -145,8 +145,8 @@ void cmGccDepfileLexerHelper::sanitizeContent()
|
|||||||
++rit;
|
++rit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Remove the entry if rules are empty or do not have any paths
|
// Remove the entry if rules are empty
|
||||||
if (it->rules.empty() || it->paths.empty()) {
|
if (it->rules.empty()) {
|
||||||
it = this->Content.erase(it);
|
it = this->Content.erase(it);
|
||||||
} else {
|
} else {
|
||||||
++it;
|
++it;
|
||||||
|
|||||||
Reference in New Issue
Block a user