Resolve dwarf paths to enable source-code mapping of stacktraces (#114767)

* feat: add "--resolve-dwarf-paths" to gen_snapshot

* chore: update tests
This commit is contained in:
Ivan Dlugos
2023-02-10 00:05:44 +01:00
committed by GitHub
parent fecd5c969e
commit f945ad99c3
2 changed files with 4 additions and 2 deletions

View File

@@ -205,11 +205,11 @@ class AOTSnapshotter {
.createSync(recursive: true);
}
// Optimization arguments.
// Debugging information.
genSnapshotArgs.addAll(<String>[
// Faster async/await
if (shouldSplitDebugInfo) ...<String>[
'--dwarf-stack-traces',
'--resolve-dwarf-paths',
'--save-debugging-info=${_fileSystem.path.join(splitDebugInfo!, debugFilename)}',
],
if (dartObfuscation)