2017-04-11 03:14:46 -07:00
|
|
|
const Builder = @import("std").build.Builder;
|
|
|
|
|
|
|
|
pub fn build(b: &Builder) {
|
|
|
|
const release = b.option(bool, "release", "optimizations on and safety off") ?? false;
|
|
|
|
|
2017-04-18 22:13:15 -07:00
|
|
|
const exe = b.addExecutable("YOUR_NAME_HERE", "src/main.zig");
|
2017-04-11 03:14:46 -07:00
|
|
|
exe.setRelease(release);
|
2017-04-18 22:13:15 -07:00
|
|
|
|
|
|
|
b.default_step.dependOn(&exe.step);
|
2017-04-11 03:14:46 -07:00
|
|
|
}
|