zig/test/standalone/use_alias/build.zig

17 lines
410 B
Zig
Raw Normal View History

const std = @import("std");
pub fn build(b: *std.Build) void {
const test_step = b.step("test", "Test it");
b.default_step = test_step;
const optimize: std.builtin.OptimizeMode = .Debug;
2023-01-31 04:39:43 +00:00
const main = b.addTest(.{
.root_source_file = .{ .path = "main.zig" },
.optimize = optimize,
2023-01-31 04:39:43 +00:00
});
main.addIncludePath(".");
test_step.dependOn(&b.addRunArtifact(main).step);
}