1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:48:11 +00:00

CodeGenerators: Ensure that we always print the entire generated output

This commit is contained in:
Tim Schumacher 2023-03-01 16:28:32 +01:00 committed by Linus Groh
parent e007279315
commit 8032724574
17 changed files with 37 additions and 74 deletions

View file

@ -160,8 +160,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
if (global_mixin_implementation_mode)
IDL::generate_global_mixin_implementation(interface, output_builder);
// FIXME: This should write the entire span.
TRY(output_file->write_some(output_builder.string_view().bytes()));
TRY(output_file->write_until_depleted(output_builder.string_view().bytes()));
if (!depfile_path.is_null()) {
auto depfile = TRY(Core::File::open_file_or_standard_stream(depfile_path, Core::File::OpenMode::Write));
@ -174,8 +173,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
depfile_builder.append(path);
}
depfile_builder.append('\n');
// FIXME: This should write the entire span.
TRY(depfile->write_some(depfile_builder.string_view().bytes()));
TRY(depfile->write_until_depleted(depfile_builder.string_view().bytes()));
}
return 0;
}