Skip to content

Commit

Permalink
Merge pull request #5 from gballet/rework-module-export-for-0.13.0
Browse files Browse the repository at this point in the history
use addModule to prevent duplication error in import
  • Loading branch information
jsign authored Jun 14, 2024
2 parents 1427714 + 85f332b commit 940eb19
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ pub fn build(b: *std.Build) !void {
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{});

const verkle_crypto_module = b.createModule(.{
.root_source_file = .{ .cwd_relative = "src/main.zig" },
_ = b.addModule("verkle-crypto", .{
.root_source_file = b.path("src/main.zig"),
});
try b.modules.put(b.dupe("verkle-crypto"), verkle_crypto_module);

const lib = b.addStaticLibrary(.{
.name = "verkle-crypto",
Expand Down

0 comments on commit 940eb19

Please sign in to comment.