rayoko/build.zig

19 lines
509 B
Zig
Raw Normal View History

2019-09-18 14:20:09 +00:00
const Builder = @import("std").build.Builder;
pub fn build(b: *Builder) void {
const mode = b.standardReleaseOptions();
const exe = b.addExecutable("rayoko", "src/main.zig");
exe.setBuildMode(mode);
exe.install();
2019-09-21 15:31:47 +00:00
exe.linkSystemLibrary("c");
exe.linkSystemLibrary("LLVM-9");
2019-09-21 15:31:47 +00:00
exe.linkSystemLibrary("stdc++");
2019-09-21 02:40:21 +00:00
2019-09-18 14:20:09 +00:00
const run_cmd = exe.run();
run_cmd.step.dependOn(b.getInstallStep());
const run_step = b.step("run", "Run the app");
run_step.dependOn(&run_cmd.step);
}