diff options
| author | Michael Forney <mforney@mforney.org> | 2016-06-27 22:20:55 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2016-06-27 22:22:04 -0700 |
| commit | 89f46c9ac2603c0f951d11080d2e824a9bd337f1 (patch) | |
| tree | 0e1ac70086cf1434a2bbe5bb2d4684c8c2fd5b69 | |
| parent | 07363d93857cddfba7179aaef4bc8bb5e7467c29 (diff) | |
Don't write fetch rule if no sources are used
| -rw-r--r-- | ninja.rc | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -156,7 +156,8 @@ fn sym { fn fetch { allsrcs=`{printf %s\n $allsrcs | sort -u} - build $"allsrcs fetch$1 '|' '$dir'/.rev + if(! ~ $#allsrcs 0) build $"allsrcs fetch$1 '|' '$dir'/.rev + status=() } status=() |
