mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-01-26 11:04:33 +00:00
Merge topic 'custom-command-ninja-deps'
3c8d1eef72 Ninja: depfile: keep rules without dependencies Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8984
This commit is contained in:
commit
b13d2e3321
@ -144,8 +144,8 @@ void cmGccDepfileLexerHelper::sanitizeContent()
|
||||
++rit;
|
||||
}
|
||||
}
|
||||
// Remove the entry if rules are empty or do not have any paths
|
||||
if (it->rules.empty() || it->paths.empty()) {
|
||||
// Remove the entry if rules are empty
|
||||
if (it->rules.empty()) {
|
||||
it = this->Content.erase(it);
|
||||
} else {
|
||||
++it;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user