Skip to content

Commit

Permalink
Add compiler to build.zig
Browse files Browse the repository at this point in the history
  • Loading branch information
dpwm committed Jan 29, 2025
1 parent 69cc1b0 commit 6e119a0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,17 @@ pub fn build(b: *std.Build) void {
// running `zig build`).
b.installArtifact(lib);

const compiler_exe = b.addExecutable(.{
.name = "zig-capnp",
// In this case the main source file is merely a path, however, in more
// complicated build scripts, this could be a generated file.
.root_source_file = b.path("src/compiler.zig"),
.target = target,
.optimize = optimize,
});

b.installArtifact(compiler_exe);

// Creates a step for unit testing. This only builds the test executable
// but does not run it.
const main_tests = b.addTest(.{
Expand Down

0 comments on commit 6e119a0

Please sign in to comment.