Skip to content

Commit

Permalink
[ VM ] Change version output message to reference SDK instead of VM
Browse files Browse the repository at this point in the history
Fixes #42486

Change-Id: I99a2c6e01065098991e2952aa45f42c5e5636189
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/152682
Reviewed-by: Jaime Wren <jwren@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
  • Loading branch information
bkonyi authored and commit-bot@chromium.org committed Jun 26, 2020
1 parent bb8d145 commit e24733e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions runtime/bin/gen_snapshot.cc
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ static void PrintUsage() {
"--help \n"
" Display this message (add --verbose for information about all VM options).\n"
"--version \n"
" Print the VM version. \n"
" Print the SDK version. \n"
" \n"
"To create a core snapshot: \n"
"--snapshot_kind=core \n"
Expand Down Expand Up @@ -235,7 +235,7 @@ static int ParseArguments(int argc,
PrintUsage();
Platform::Exit(0);
} else if (version) {
Syslog::PrintErr("Dart VM version: %s\n", Dart_VersionString());
Syslog::PrintErr("Dart SDK version: %s\n", Dart_VersionString());
Platform::Exit(0);
}

Expand Down
4 changes: 2 additions & 2 deletions runtime/bin/main_options.cc
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ DEFINE_BOOL_OPTION_CB(hot_reload_rollback_test_mode,
hot_reload_rollback_test_mode_callback);

void Options::PrintVersion() {
Syslog::PrintErr("Dart VM version: %s\n", Dart_VersionString());
Syslog::PrintErr("Dart SDK version: %s\n", Dart_VersionString());
}

// clang-format off
Expand Down Expand Up @@ -169,7 +169,7 @@ void Options::PrintUsage() {
" kernel(default) or app-jit\n"
" <file_name> specifies the file into which the snapshot is written\n"
"--version\n"
" Print the VM version.\n");
" Print the SDK version.\n");
} else {
Syslog::PrintErr(
"Supported options:\n"
Expand Down

0 comments on commit e24733e

Please sign in to comment.