Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
GalaxyShard committed Dec 16, 2024
1 parent 449567d commit 4e8f820
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/std/Build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ pub fn generateCompdb(self: *std.Build) !void {
for (entry.module.include_dirs.items) |include_dir| {
const args: [2][]const u8 = blk: switch (include_dir) {
.path => |include_path| {
break :blk .{ "-I", include_path.getPath2(self, null) };
break :blk .{ "-I", include_path.getPath2(self, null) };
},
.path_system => |include_path| {
break :blk .{ "-isystem", include_path.getPath2(self, null) };
Expand Down Expand Up @@ -767,7 +767,7 @@ pub fn generateCompdb(self: *std.Build) !void {
try std.json.encodeJsonString(entry.relative_path, .{}, writer);

_ = try writer.write("}");
if (i != entries.len-1) {
if (i != entries.len - 1) {
_ = try writer.write(",");
}
}
Expand Down
1 change: 0 additions & 1 deletion lib/std/Build/Step/Compile.zig
Original file line number Diff line number Diff line change
Expand Up @@ -1288,7 +1288,6 @@ fn getZigArgs(compile: *Compile, fuzz: bool) ![][]const u8 {
.relative_path = path.sub_path,
.flags = c_source_file.flags,
});

}
try zig_args.append(c_source_file.file.getPath2(dep.module.owner, step));
total_linker_objects += 1;
Expand Down

0 comments on commit 4e8f820

Please sign in to comment.