aboutsummaryrefslogtreecommitdiff
path: root/doc/langref/build.zig
blob: 19e4b57c08c699666a61bab5d7fe1d1fb29737c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
const std = @import("std");

pub fn build(b: *std.Build) void {
    const optimize = b.standardOptimizeOption(.{});
    const exe = b.addExecutable(.{
        .name = "example",
        .root_module = b.createModule(.{
            .root_source_file = b.path("example.zig"),
            .optimize = optimize,
        }),
    });
    b.default_step.dependOn(&exe.step);
}

// syntax