Skip to content

Commit

Permalink
make examples build for 0.13.0 (#6)
Browse files Browse the repository at this point in the history
Thank you.
  • Loading branch information
chiumichael authored Nov 14, 2024
1 parent 17e8ef0 commit de8952c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const examples = .{
"dry-run",
};

pub fn build(b: *std.build.Builder) void {
pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{});

Expand All @@ -21,14 +21,14 @@ pub fn build(b: *std.build.Builder) void {

const exe = b.addExecutable(.{
.name = exe_name,
.root_source_file = .{ .path = example_path },
.root_source_file = b.path(example_path),
.target = target,
.optimize = optimize,
});
const mod = b.addModule("dotenv", .{
.source_file = .{ .path = "../src/lib.zig" },
.root_source_file = b.path("../src/lib.zig"),
});
exe.addModule("dotenv", mod);
exe.root_module.addImport("dotenv", mod);
exe.linkSystemLibrary("c");

b.installArtifact(exe);
Expand Down

0 comments on commit de8952c

Please sign in to comment.