aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Build/Step/Compile.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-05-28 19:27:14 -0400
committerGitHub <noreply@github.com>2024-05-28 19:27:14 -0400
commit963ffe9d572e6da4ef22672af9b7c54150f66b27 (patch)
tree950c39722d71cdd6f2af75c255ee92a318cda516 /lib/std/Build/Step/Compile.zig
parent759c2211c2eba44cccf0608267bf1a05934ad8a1 (diff)
parent3a3d2187f986066859cfb793fb7ee1cae4dfea08 (diff)
downloadzig-963ffe9d572e6da4ef22672af9b7c54150f66b27.tar.gz
zig-963ffe9d572e6da4ef22672af9b7c54150f66b27.zip
Merge pull request #20059 from ziglang/progress
rework std.Progress
Diffstat (limited to 'lib/std/Build/Step/Compile.zig')
-rw-r--r--lib/std/Build/Step/Compile.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/std/Build/Step/Compile.zig b/lib/std/Build/Step/Compile.zig
index f660ef64a6..e27dd65619 100644
--- a/lib/std/Build/Step/Compile.zig
+++ b/lib/std/Build/Step/Compile.zig
@@ -967,7 +967,7 @@ fn getGeneratedFilePath(compile: *Compile, comptime tag_name: []const u8, asking
const maybe_path: ?*GeneratedFile = @field(compile, tag_name);
const generated_file = maybe_path orelse {
- std.debug.getStderrMutex().lock();
+ std.debug.lockStdErr();
const stderr = std.io.getStdErr();
std.Build.dumpBadGetPathHelp(&compile.step, stderr, compile.step.owner, asking_step) catch {};
@@ -976,7 +976,7 @@ fn getGeneratedFilePath(compile: *Compile, comptime tag_name: []const u8, asking
};
const path = generated_file.path orelse {
- std.debug.getStderrMutex().lock();
+ std.debug.lockStdErr();
const stderr = std.io.getStdErr();
std.Build.dumpBadGetPathHelp(&compile.step, stderr, compile.step.owner, asking_step) catch {};
@@ -987,7 +987,7 @@ fn getGeneratedFilePath(compile: *Compile, comptime tag_name: []const u8, asking
return path;
}
-fn make(step: *Step, prog_node: *std.Progress.Node) !void {
+fn make(step: *Step, prog_node: std.Progress.Node) !void {
const b = step.owner;
const arena = b.allocator;
const compile: *Compile = @fieldParentPtr("step", step);