You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ ninja -f lol.ninja c
ninja: fatal: cycle in rule variables: depfile -> depfile
Error remains even if you comment out the mkdir -p $depfile line.
Error goes away if you REMOVE that line.
Behaviour is very counterintuitive - wasted hours debugging thinking it was to do with complex depfile behaviour, when it was just this dumb unrelated thing. Seems like ninja-build is scanning command including comments to look for undeclared dependencies, and has an exception for $out but not $depfile???
Error remains even if you comment out the
mkdir -p $depfile
line.Error goes away if you REMOVE that line.
Behaviour is very counterintuitive - wasted hours debugging thinking it was to do with complex depfile behaviour, when it was just this dumb unrelated thing. Seems like ninja-build is scanning
command
including comments to look for undeclared dependencies, and has an exception for$out
but not$depfile
???The text was updated successfully, but these errors were encountered: