Skip to content

Commit

Permalink
temporarily disable error in build.zig
Browse files Browse the repository at this point in the history
  • Loading branch information
basdp committed Oct 10, 2024
1 parent 9951c7a commit a4ddea1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ pub fn main() !void {
.fFormat = gl.RGBA8,
};
const samples: = ... // get from GL or something
const stencil_bits = ... // get from GL or something
const samples: c_int = ... // get from GL or something
const stencil_bits: c_int = ... // get from GL or something
const backendRenderTarget = skia.gr_backendrendertarget_new_gl(640, 480, samples, stencil_bits, &gl_info) orelse return error.SkiaCreateRenderTargetFailed;
Expand Down
2 changes: 1 addition & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub fn build(b: *std.Build) !void {

if (target.result.os.tag == .windows and target.result.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 requesting it in the default_target of b.standardTargetOptions.", .{});
return error.SkiaRequiresMSVConWin;
//return error.SkiaRequiresMSVConWin; // Temporarily disabled as this breaks ZLS
}

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

0 comments on commit a4ddea1

Please sign in to comment.