gn: tool without `command` causes silent crash |
|||
Issue description
I added a placeholder tool to a new BUILDCONFIG.gn
tool("solink_module") {
# TODO: Implement.
outputs = [
"{{target_output_name}}{{output_extension}}",
]
}
When generating, I was surprised there was no build.ninja. After some confusion, it seems that if there's no command entry, gn crashes (or exits).
I guess it's likely hitting https://cs.chromium.org/chromium/src/tools/gn/ninja_toolchain_writer.cc?rcl=64337af3fa6a5ed60960b65a70ca8ba060483cc4&l=92 (I didn't check) but it'd be nice if there was an error earlier somewhere.
,
Nov 21 2017
Er, sorry, yeah. build/BUILD.gn, not BUILDCONFIG.gn.
,
Nov 23 2017
The issue seems to be out of TE-scope as it is related to build. Hence, adding label TE-NeedsTriageHelp for further investigation from dev team. Thanks...!!
,
Nov 28 2017
clearing triage labels, this is just a dev issue. @scottmg: I'm guessing this isn't really blocking the crashpad conversion?
,
Nov 28 2017
No, not blocking, that was just a "relatedly". |
|||
►
Sign in to add a comment |
|||
Comment 1 by dpranke@chromium.org
, Nov 21 2017