mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:44:43 +01:00
resinator: update to new progress API
This commit is contained in:
parent
03073d6c7b
commit
0937992a14
3 changed files with 4 additions and 10 deletions
|
|
@ -108,8 +108,8 @@ pub const Diagnostics = struct {
|
|||
}
|
||||
|
||||
pub fn renderToStdErr(self: *Diagnostics, args: []const []const u8, config: std.io.tty.Config) void {
|
||||
std.debug.getStderrMutex().lock();
|
||||
defer std.debug.getStderrMutex().unlock();
|
||||
std.debug.lockStdErr();
|
||||
defer std.debug.unlockStdErr();
|
||||
const stderr = std.io.getStdErr().writer();
|
||||
self.renderToWriter(args, stderr, config) catch return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -60,8 +60,8 @@ pub const Diagnostics = struct {
|
|||
}
|
||||
|
||||
pub fn renderToStdErr(self: *Diagnostics, cwd: std.fs.Dir, source: []const u8, tty_config: std.io.tty.Config, source_mappings: ?SourceMappings) void {
|
||||
std.debug.getStderrMutex().lock();
|
||||
defer std.debug.getStderrMutex().unlock();
|
||||
std.debug.lockStdErr();
|
||||
defer std.debug.unlockStdErr();
|
||||
const stderr = std.io.getStdErr().writer();
|
||||
for (self.errors.items) |err_details| {
|
||||
renderErrorMessage(self.allocator, stderr, tty_config, cwd, err_details, source, self.strings.items, source_mappings) catch return;
|
||||
|
|
|
|||
|
|
@ -50,12 +50,6 @@ pub fn main() !void {
|
|||
},
|
||||
};
|
||||
|
||||
if (zig_integration) {
|
||||
// Send progress with a special string to indicate that the building of the
|
||||
// resinator binary is finished and we've moved on to actually compiling the .rc file
|
||||
try error_handler.server.serveStringMessage(.progress, "<resinator>");
|
||||
}
|
||||
|
||||
var options = options: {
|
||||
var cli_diagnostics = cli.Diagnostics.init(allocator);
|
||||
defer cli_diagnostics.deinit();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue