Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update outdated LazyPath constructors #82

Merged
merged 1 commit into from
May 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub fn build(b: *Build) void {

// Zig module
const ziglua = b.addModule("ziglua", .{
.root_source_file = .{ .path = "src/lib.zig" },
.root_source_file = b.path("src/lib.zig"),
});

// Expose build configuration to the ziglua module
Expand Down Expand Up @@ -70,7 +70,7 @@ pub fn build(b: *Build) void {

// Tests
const tests = b.addTest(.{
.root_source_file = .{ .path = "src/tests.zig" },
.root_source_file = b.path("src/tests.zig"),
.target = target,
.optimize = optimize,
});
Expand All @@ -93,7 +93,7 @@ pub fn build(b: *Build) void {
for (examples) |example| {
const exe = b.addExecutable(.{
.name = example[0],
.root_source_file = .{ .path = example[1] },
.root_source_file = b.path(example[1]),
.target = target,
.optimize = optimize,
});
Expand All @@ -113,7 +113,7 @@ pub fn build(b: *Build) void {

const docs = b.addStaticLibrary(.{
.name = "ziglua",
.root_source_file = .{ .path = "src/lib.zig" },
.root_source_file = b.path("src/lib.zig"),
.target = target,
.optimize = optimize,
});
Expand Down Expand Up @@ -223,7 +223,7 @@ fn buildLuau(b: *Build, target: Build.ResolvedTarget, optimize: std.builtin.Opti
.files = &luau_source_files,
.flags = &flags,
});
lib.addCSourceFile(.{ .file = .{ .path = "src/luau.cpp" }, .flags = &flags });
lib.addCSourceFile(.{ .file = b.path("src/luau.cpp"), .flags = &flags });
lib.linkLibCpp();

// It may not be as likely that other software links against Luau, but might as well expose these anyway
Expand Down
Loading