cmNinjaTargetGenerator: skip setting depfile for none scantypes

The `clang` mechanism does not support `depfile` discovered dependencies
at the moment.
This commit is contained in:
Ben Boeckel
2022-12-01 22:20:35 -05:00
parent 9123a0991f
commit 9c66224668

View File

@@ -543,6 +543,9 @@ cmNinjaRule GetScanRule(
if (deptype == "msvc"_s) {
rule.DepType = deptype;
rule.DepFile.clear();
} else if (deptype == "none"_s) {
rule.DepType.clear(); // no deps= for multiple outputs
rule.DepFile.clear();
} else {
rule.DepType.clear(); // no deps= for multiple outputs
rule.DepFile = "$DEP_FILE";