Skip to content

Commit 7eada43

Browse files
authored
replace deprecated LibExeObjStep (#69)
Replace `LibExeObjStep` with `Step.Compile`. https://github.com/ziglang/zig/blob/master/lib/std/Build.zig#L24-L25
2 parents 2ee417a + 37d8309 commit 7eada43

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

build.zig

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const std = @import("std");
2-
const LibExeObjStep = std.build.LibExeObjStep;
2+
const CompileStep = std.build.Step.Compile;
33
const ScdocStep = @import("src/build/ScdocStep.zig");
44

55
pub fn build(b: *std.Build) !void {
@@ -73,7 +73,7 @@ pub fn build(b: *std.Build) !void {
7373
test_step.dependOn(&tests_run.step);
7474

7575
// Static C lib
76-
const static_c_lib: ?*std.build.LibExeObjStep = if (target.getOsTag() != .wasi) lib: {
76+
const static_c_lib: ?*std.build.Step.Compile = if (target.getOsTag() != .wasi) lib: {
7777
const static_lib = b.addStaticLibrary(.{
7878
.name = "xev",
7979
.root_source_file = .{ .path = "src/c_api.zig" },
@@ -194,10 +194,10 @@ fn benchTargets(
194194
mode: std.builtin.Mode,
195195
install: bool,
196196
install_name: ?[]const u8,
197-
) !std.StringHashMap(*LibExeObjStep) {
197+
) !std.StringHashMap(*CompileStep) {
198198
_ = mode;
199199

200-
var map = std.StringHashMap(*LibExeObjStep).init(b.allocator);
200+
var map = std.StringHashMap(*CompileStep).init(b.allocator);
201201

202202
// Open the directory
203203
const c_dir_path = (comptime thisDir()) ++ "/src/bench";
@@ -249,7 +249,7 @@ fn exampleTargets(
249249
b: *std.Build,
250250
target: std.zig.CrossTarget,
251251
optimize: std.builtin.Mode,
252-
c_lib_: ?*std.build.LibExeObjStep,
252+
c_lib_: ?*std.build.Step.Compile,
253253
install: bool,
254254
install_name: ?[]const u8,
255255
) !void {

0 commit comments

Comments
 (0)