zig/test/standalone/load_dynamic_library/build.zig
Jimmi Holst Christensen 8139c5a516
New Zig formal grammar (#1685)
Reverted #1628 and changed the grammar+parser of the language to not allow certain expr where types are expected
2018-11-13 05:08:37 -08:00

22 lines
604 B
Zig

const Builder = @import("std").build.Builder;
pub fn build(b: *Builder) void {
const opts = b.standardReleaseOptions();
const lib = b.addSharedLibrary("add", "add.zig", b.version(1, 0, 0));
lib.setBuildMode(opts);
const main = b.addExecutable("main", "main.zig");
main.setBuildMode(opts);
const run = b.addCommand(".", b.env_map, [][]const u8{
main.getOutputPath(),
lib.getOutputPath(),
});
run.step.dependOn(&lib.step);
run.step.dependOn(&main.step);
const test_step = b.step("test", "Test the program");
test_step.dependOn(&run.step);
}