Skip to content

Commit

Permalink
Update build.zig
Browse files Browse the repository at this point in the history
  • Loading branch information
basdp committed Oct 9, 2024
1 parent 95483b4 commit 49317ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ pub fn build(b: *std.Build) !void {
const target = b.standardTargetOptions(.{});

if (target.result.os.tag == .windows and target.result.abi != .msvc) {
@compileError("Skia requires the `msvc` abi on Windows. Please specify the abi using the build command (e.g. `zig build -Dtarget=x86_64-windows-msvc`) or force it by overwriting the abi in build.zig: `target.query.abi = .msvc;`.");
std.debug.print("Error: Skia requires the `msvc` abi on Windows. Please specify the abi using the build command (e.g. `zig build -Dtarget=x86_64-windows-msvc`) or force it by overwriting the abi in build.zig: `target.query.abi = .msvc;`.", .{});
return error.SkiaRequiresMSVConWin;
}

// Standard optimization options allow the person running `zig build` to select
Expand Down

0 comments on commit 49317ff

Please sign in to comment.