Skip to content

Commit 0d1db38

Browse files
sortiecommit-bot@chromium.org
authored andcommitted
[ddc] Only print blank line in ddb if verbose.
The blank line clobbers the output if ddb is used in non-verbose mode to execute a program where the stdout ordinarily belongs to the program in question whose output might be machine parsed. Change-Id: Ie929d19deabebb7b1f3d24f99035aec2d9844a64 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/153208 Reviewed-by: Nicholas Shahan <[email protected]> Commit-Queue: Jonas Termansen <[email protected]>
1 parent d473952 commit 0d1db38

File tree

1 file changed

+3
-1
lines changed
  • pkg/dev_compiler/tool

1 file changed

+3
-1
lines changed

pkg/dev_compiler/tool/ddb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,9 @@ void main(List<String> args) async {
227227
}
228228

229229
// Print an initial empty line to separate the invocation from the output.
230-
print('');
230+
if (verbose) {
231+
print('');
232+
}
231233

232234
if (compile) {
233235
var ddcArgs = [

0 commit comments

Comments
 (0)