diff options
| author | star-tek-mb <[email protected]> | 2023-02-06 14:28:24 +0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-02-06 10:28:24 +0100 |
| commit | 04ab76b88927981844aedcdeaebd8f1866a32406 (patch) | |
| tree | 58c7f745a810b7aceb60bba85cdff8b56813d6b5 | |
| parent | 1fea26647214308774c4630d10883f42d608fa9d (diff) | |
| download | raylib-04ab76b88927981844aedcdeaebd8f1866a32406.tar.gz raylib-04ab76b88927981844aedcdeaebd8f1866a32406.zip | |
zig build: do not use deprecated functions (#2913)
| -rw-r--r-- | examples/build.zig | 4 | ||||
| -rw-r--r-- | src/build.zig | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/build.zig b/examples/build.zig index c0479910..65586f12 100644 --- a/examples/build.zig +++ b/examples/build.zig @@ -1,7 +1,7 @@ const std = @import("std"); const builtin = @import("builtin"); -fn add_module(comptime module: []const u8, b: *std.build.Builder, target: std.zig.CrossTarget, optimize: std.builtin.OptimizeMode) !*std.build.Step { +fn add_module(comptime module: []const u8, b: *std.Build, target: std.zig.CrossTarget, optimize: std.builtin.OptimizeMode) !*std.Build.Step { if (target.getOsTag() == .emscripten) { @panic("Emscripten building via Zig unsupported"); } @@ -81,7 +81,7 @@ fn add_module(comptime module: []const u8, b: *std.build.Builder, target: std.zi return all; } -pub fn build(b: *std.build.Builder) !void { +pub fn build(b: *std.Build) !void { // Standard target options allows the person running `zig build` to choose // what target to build for. Here we do not override the defaults, which // means any target is allowed, and the default is native. Other options diff --git a/src/build.zig b/src/build.zig index adf7fdc9..84684fef 100644 --- a/src/build.zig +++ b/src/build.zig @@ -1,6 +1,6 @@ const std = @import("std"); -pub fn addRaylib(b: *std.build.Builder, target: std.zig.CrossTarget, optimize: std.builtin.OptimizeMode) *std.build.LibExeObjStep { +pub fn addRaylib(b: *std.Build, target: std.zig.CrossTarget, optimize: std.builtin.OptimizeMode) *std.Build.CompileStep { const raylib_flags = &[_][]const u8{ "-std=gnu99", "-D_GNU_SOURCE", @@ -103,7 +103,7 @@ pub fn addRaylib(b: *std.build.Builder, target: std.zig.CrossTarget, optimize: s return raylib; } -pub fn build(b: *std.build.Builder) void { +pub fn build(b: *std.Build) void { // Standard target options allows the person running `zig build` to choose // what target to build for. Here we do not override the defaults, which // means any target is allowed, and the default is native. Other options |
