Skip to content

Commit

Permalink
fix: update to latest zig (#65)
Browse files Browse the repository at this point in the history
build.zig API changes: `.dependency = upstream` becomes
`.root = .{ .dependency = .{
        .dependency = upstream,
        .sub_path = "",
    } },`
  • Loading branch information
robbielyman authored Mar 4, 2024
1 parent 2ced050 commit effbedc
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,10 @@ fn buildLua(b: *Build, target: Build.ResolvedTarget, optimize: std.builtin.Optim
};

lib.addCSourceFiles(.{
.dependency = upstream,
.root = .{ .dependency = .{
.dependency = upstream,
.sub_path = "",
} },
.files = lua_source_files,
.flags = &flags,
});
Expand Down Expand Up @@ -222,7 +225,10 @@ fn buildLuau(b: *Build, target: Build.ResolvedTarget, optimize: std.builtin.Opti
};

lib.addCSourceFiles(.{
.dependency = upstream,
.root = .{ .dependency = .{
.dependency = upstream,
.sub_path = "",
} },
.files = &luau_source_files,
.flags = &flags,
});
Expand Down Expand Up @@ -314,7 +320,10 @@ fn buildLuaJIT(b: *Build, target: Build.ResolvedTarget, optimize: std.builtin.Op
buildvm.step.dependOn(&genversion_run.step);

buildvm.addCSourceFiles(.{
.dependency = upstream,
.root = .{ .dependency = .{
.dependency = upstream,
.sub_path = "",
} },
.files = &.{ "src/host/buildvm_asm.c", "src/host/buildvm_fold.c", "src/host/buildvm_lib.c", "src/host/buildvm_peobj.c", "src/host/buildvm.c" },
});

Expand Down Expand Up @@ -403,7 +412,10 @@ fn buildLuaJIT(b: *Build, target: Build.ResolvedTarget, optimize: std.builtin.Op
lib.addIncludePath(folddef_header.dirname());

lib.addCSourceFiles(.{
.dependency = upstream,
.root = .{ .dependency = .{
.dependency = upstream,
.sub_path = "",
} },
.files = &luajit_vm,
});

Expand Down

0 comments on commit effbedc

Please sign in to comment.