Skip to content

Commit

Permalink
Merge pull request #3 from lcscosta/zig-0.12.0-dev.3552+b88ae8dbd
Browse files Browse the repository at this point in the history
Update to Zig 0.12.0 dev.3552+b88ae8dbd
  • Loading branch information
Remy2701 authored Apr 4, 2024
2 parents 21c4dc0 + cc910b1 commit 4dc0141
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ const std = @import("std");

fn add_start_point(
b: *std.Build,
target: std.zig.CrossTarget,
target: std.Build.ResolvedTarget,
optimize: std.builtin.OptimizeMode,
name: []const u8,
description: []const u8,
path: []const u8,
module: *std.build.Module,
module: *std.Build.Module,
) void {
const exe = b.addExecutable(.{
.name = "zigplotlib",
Expand All @@ -16,7 +16,7 @@ fn add_start_point(
.optimize = optimize,
});

exe.addModule("zigplotlib", module);
exe.root_module.addImport("zigplotlib", module);

// This declares intent for the executable to be installed into the
// standard location when the user invokes the "install" step (the default
Expand Down Expand Up @@ -72,7 +72,7 @@ pub fn build(b: *std.Build) void {
});

const lib_module = b.addModule("zigplotlib", .{
.source_file = .{ .path = "src/root.zig" },
.root_source_file = .{ .path = "src/root.zig" },
});

// This declares intent for the library to be installed into the standard
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const zigplotlib = b.dependency("zigplotlib", .{
.optimize = optimize,
});
exe.addModule("plotlib", zigplotlib.module("zigplotlib"));
exe.root_module.addImport("plotlib", zigplotlib.module("zigplotlib"));
```

The name of the module (`plotlib`) can be changed to whatever you want.
Expand Down

0 comments on commit 4dc0141

Please sign in to comment.