Skip to content

Commit

Permalink
[dartdev] Add path to gen_snapshot and arguments in verbose output
Browse files Browse the repository at this point in the history
Add the path of gen_snapshot and arguments to the trace that is output
in verbose mode.

TEST=ci

Change-Id: I1ffd2f740b9a2aa658fc7cdcd21057dc2b318b60
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/303007
Commit-Queue: Siva Annamalai <[email protected]>
Reviewed-by: Ben Konyi <[email protected]>
  • Loading branch information
a-siva authored and Commit Queue committed May 26, 2023
1 parent 25bc8b4 commit b20b8ef
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pkg/dart2native/lib/generate.dart
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,13 @@ Future<void> generateNative({
throw 'Generating AOT kernel dill failed!';
}

if (verbose) {
print('Generating AOT snapshot.');
}

List<String> extraAotOptions = [
if (!soundNullSafety) "--no-sound-null-safety",
...extraOptions
];
if (verbose) {
print('Generating AOT snapshot. $genSnapshot $extraAotOptions');
}
final String snapshotFile = (outputKind == Kind.aot
? outputPath
: path.join(tempDir.path, 'snapshot.aot'));
Expand Down

0 comments on commit b20b8ef

Please sign in to comment.