• brettw@chromium.org's avatar
    Elide gn desc --tree output by default. · 9019e16c
    brettw@chromium.org authored
    When gn's desc command is used with --tree, it prints a dependency tree. But recursively printing the dependency tree of a high-level target in Chrome prints too much output to be useful because it's printing, e.g. base and it's deps over and over (//chrome/browser-s --tree is 3210166 lines).
    
    With this patch, a target will be recursed into the first time it's printed, but subsequent times the children will be elided with "..." This brings down //chrome/browser to 2050 lines. The previous behavior is still available (it could be useful in certain cases) via "--tree --all".
    
    This also updates an optimization comment in the the optimization setup (optimize_max isn't just Windows-only).
    
    R=dalecurtis@chromium.org
    
    Review URL: https://codereview.chromium.org/437033002
    
    git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287424 0039d316-1c4b-4281-b951-d872f2087c98
    9019e16c
command_desc.cc 22.2 KB