Skip to content

Commit

Permalink
use addModule to prevent duplication error in import
Browse files Browse the repository at this point in the history
  • Loading branch information
gballet committed Jun 14, 2024
1 parent 1427714 commit 85f332b
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 85f332b

Please sign in to comment.