mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 22:33:08 +00:00
16 lines
381 B
Zig
16 lines
381 B
Zig
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
|