mirror of
https://github.com/encounter/engine.git
synced 2026-03-30 11:09:55 -07:00
Return generated kernel filename on incremental compilation results. (#4069)
This commit is contained in:
committed by
GitHub
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user