build.zig (381B) - Raw
1 const std = @import("std"); 2 3 pub fn build(b: *std.Build) void { 4 const optimize = b.standardOptimizeOption(.{}); 5 const exe = b.addExecutable(.{ 6 .name = "example", 7 .root_module = b.createModule(.{ 8 .root_source_file = b.path("example.zig"), 9 .optimize = optimize, 10 }), 11 }); 12 b.default_step.dependOn(&exe.step); 13 } 14 15 // syntax