Skip to content

Commit

Permalink
Clean up build.zig
Browse files Browse the repository at this point in the history
  • Loading branch information
sam701 committed Jul 5, 2023
1 parent e8da9c4 commit ea92821
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ pub fn build(b: *std.Build) void {
const optimize = b.standardOptimizeOption(.{});
const target = b.standardTargetOptions(.{});

_ = b.addModule("zig-cli", .{
const module = b.addModule("zig-cli", .{
.source_file = std.Build.FileSource.relative("src/main.zig"),
.dependencies = &[_]std.Build.ModuleDependency{},
});

const lib = b.addStaticLibrary(.{
Expand All @@ -26,10 +25,6 @@ pub fn build(b: *std.Build) void {
const test_step = b.step("test", "Run library tests");
test_step.dependOn(&run_tests.step);

const module = b.createModule(.{
.source_file = .{ .path = "src/main.zig" },
});

const simple = b.addExecutable(.{
.name = "simple",
.root_source_file = .{ .path = "example/simple.zig" },
Expand Down

0 comments on commit ea92821

Please sign in to comment.