diff options
| author | Fumitoshi Ukai <fumitoshi.ukai@gmail.com> | 2015-07-17 17:39:26 +0900 |
|---|---|---|
| committer | Fumitoshi Ukai <fumitoshi.ukai@gmail.com> | 2015-07-17 17:39:26 +0900 |
| commit | 2dc2c1779cbf64e49c17ce7c1fc7d79b2efa522c (patch) | |
| tree | 4cbb00f0948ca722b02a53aa944d7892f8c53519 /ninja.go | |
| parent | 3857a24dcfc856a50f0901a14b72cf441c0a0292 (diff) | |
[go] don't emit short name tfile for tdir/tfile and tfile
Diffstat (limited to 'ninja.go')
| -rw-r--r-- | ninja.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -420,6 +420,9 @@ func (n *NinjaGenerator) generateNinja(suffix, defaultTarget string) (err error) fmt.Fprintf(n.f, "\n# shortcuts:\n") var names []string for name := range n.shortNames { + if n.done[name] { + continue + } names = append(names, name) } sort.Strings(names) |
