mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Return generated kernel filename on incremental compilation results. (#4069)
This commit is contained in:
parent
883f81c844
commit
5aabbe131a
@ -158,7 +158,7 @@ class _FrontendCompiler implements CompilerInterface {
|
||||
final IOSink sink = new File(_kernelBinaryFilename).openWrite();
|
||||
final BinaryPrinter printer = printerFactory.newBinaryPrinter(sink);
|
||||
printer.writeProgramFile(deltaProgram.newProgram);
|
||||
_outputStream.writeln("$boundaryKey");
|
||||
_outputStream.writeln("$boundaryKey $_kernelBinaryFilename");
|
||||
await sink.close();
|
||||
return null;
|
||||
}
|
||||
|
||||
@ -222,7 +222,7 @@ Future<int> main() async {
|
||||
boundaryKey = s.substring(RESULT_OUTPUT_SPACE.length);
|
||||
}
|
||||
} else {
|
||||
if (s == boundaryKey) {
|
||||
if (s.startsWith(boundaryKey)) {
|
||||
boundaryKey = null;
|
||||
receivedResult.sendPort.send(true);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user