• dpranke's avatar
    GN: Generate phony rules for unique executables. · ab689a4f
    dpranke authored
    Prior to this CL, if there were multiple targets ina GN build
    with the name 'unit_tests', we would not generate a top-level
    phony ninja target for them; you would have to specify either
    the full path to the output or the label name.
    
    This is confusing for things like 'browser_tests' and 'unit_tests',
    where in Chromium we might have multiple targets with that name,
    but only one of those is an executable (at least in the default
    toolchain).
    
    This CL adds logic to handle that case (so that 'unit_tests' does work).
    
    R=brettw@chromium.org
    BUG=480042
    
    Review URL: https://codereview.chromium.org/1101323005
    
    Cr-Commit-Position: refs/heads/master@{#326942}
    ab689a4f
ninja_build_writer.cc 10.9 KB