Skip to content

Commit f4a27af

Browse files
committed
zig fmt build.zig
1 parent ca0f407 commit f4a27af

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

build.zig

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,21 +179,22 @@ fn common(b: *std.Build, opts: *std.Build.Step.Options, step: *std.Build.Step.Co
179179
.macos => "macos",
180180
else => return error.UnsupportedPlatform,
181181
};
182-
var lib_path = try std.fmt.allocPrint(mod.owner.allocator,
182+
var lib_path = try std.fmt.allocPrint(
183+
mod.owner.allocator,
183184
"v8/out/{s}/{s}/obj/zig/libc_v8.a",
184-
.{os, release_dir},
185+
.{ os, release_dir },
185186
);
186187
std.fs.cwd().access(lib_path, .{}) catch {
187188
// legacy path
188-
lib_path = try std.fmt.allocPrint(mod.owner.allocator,
189+
lib_path = try std.fmt.allocPrint(
190+
mod.owner.allocator,
189191
"v8/out/{s}/obj/zig/libc_v8.a",
190192
.{release_dir},
191193
);
192194
};
193195
mod.addObjectFile(mod.owner.path(lib_path));
194196
}
195197

196-
197198
switch (target.result.os.tag) {
198199
.macos => {
199200
// v8 has a dependency, abseil-cpp, which, on Mac, uses CoreFoundation

0 commit comments

Comments
 (0)