mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 15:13:28 +00:00
zig fmt build.zig
This commit is contained in:
@@ -179,13 +179,15 @@ fn common(b: *std.Build, opts: *std.Build.Step.Options, step: *std.Build.Step.Co
|
|||||||
.macos => "macos",
|
.macos => "macos",
|
||||||
else => return error.UnsupportedPlatform,
|
else => return error.UnsupportedPlatform,
|
||||||
};
|
};
|
||||||
var lib_path = try std.fmt.allocPrint(mod.owner.allocator,
|
var lib_path = try std.fmt.allocPrint(
|
||||||
|
mod.owner.allocator,
|
||||||
"v8/out/{s}/{s}/obj/zig/libc_v8.a",
|
"v8/out/{s}/{s}/obj/zig/libc_v8.a",
|
||||||
.{ os, release_dir },
|
.{ os, release_dir },
|
||||||
);
|
);
|
||||||
std.fs.cwd().access(lib_path, .{}) catch {
|
std.fs.cwd().access(lib_path, .{}) catch {
|
||||||
// legacy path
|
// legacy path
|
||||||
lib_path = try std.fmt.allocPrint(mod.owner.allocator,
|
lib_path = try std.fmt.allocPrint(
|
||||||
|
mod.owner.allocator,
|
||||||
"v8/out/{s}/obj/zig/libc_v8.a",
|
"v8/out/{s}/obj/zig/libc_v8.a",
|
||||||
.{release_dir},
|
.{release_dir},
|
||||||
);
|
);
|
||||||
@@ -193,7 +195,6 @@ fn common(b: *std.Build, opts: *std.Build.Step.Options, step: *std.Build.Step.Co
|
|||||||
mod.addObjectFile(mod.owner.path(lib_path));
|
mod.addObjectFile(mod.owner.path(lib_path));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
switch (target.result.os.tag) {
|
switch (target.result.os.tag) {
|
||||||
.macos => {
|
.macos => {
|
||||||
// v8 has a dependency, abseil-cpp, which, on Mac, uses CoreFoundation
|
// v8 has a dependency, abseil-cpp, which, on Mac, uses CoreFoundation
|
||||||
|
|||||||
Reference in New Issue
Block a user