Skip to main content

build

minimum

0.12.0
const std = @import("std");

pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{});

const exe = b.addExecutable(.{
.name = "zig-hello",
.root_source_file = b.path("src/main.zig"),
.target = target,
.optimize = optimize,
});

// install to zig-out/bin/ when build
b.installArtifact(exe);
}