Skip to content

Commit 94e0c85

Browse files
dweillerandrewrk
authored andcommitted
update dump-cov for alignment and writergate changes
1 parent 5f6e324 commit 94e0c85

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

test/standalone/build.zig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ pub fn build(b: *std.Build) void {
3131
const tools_target = b.resolveTargetQuery(.{});
3232
for ([_][]const u8{
3333
// Alphabetically sorted. No need to build `tools/spirv/grammar.zig`.
34+
"../../tools/dump-cov.zig",
3435
"../../tools/fetch_them_macos_headers.zig",
3536
"../../tools/gen_macos_headers_c.zig",
3637
"../../tools/gen_outline_atomics.zig",

test/standalone/build.zig.zon

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.{
2-
.name = "standalone_test_cases",
2+
.name = .standalone_test_cases,
3+
.fingerprint = 0xc0dbdf9c818957be,
34
.version = "0.0.0",
45
.dependencies = .{
56
.simple = .{

tools/dump-cov.zig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ pub fn main() !void {
3333
defer coverage.deinit(gpa);
3434

3535
var debug_info = std.debug.Info.load(gpa, exe_path, &coverage) catch |err| {
36-
fatal("failed to load debug info for {}: {s}", .{ exe_path, @errorName(err) });
36+
fatal("failed to load debug info for {f}: {s}", .{ exe_path, @errorName(err) });
3737
};
3838
defer debug_info.deinit(gpa);
3939

@@ -42,10 +42,10 @@ pub fn main() !void {
4242
cov_path.sub_path,
4343
1 << 30,
4444
null,
45-
@alignOf(SeenPcsHeader),
45+
.of(SeenPcsHeader),
4646
null,
4747
) catch |err| {
48-
fatal("failed to load coverage file {}: {s}", .{ cov_path, @errorName(err) });
48+
fatal("failed to load coverage file {f}: {s}", .{ cov_path, @errorName(err) });
4949
};
5050

5151
var stdout_buffer: [4000]u8 = undefined;

0 commit comments

Comments
 (0)