This was from master branch commit
c93e0d8618. Since standalone test are
completely reworked, I had to resolve the merge conflict later, in this
commit.
21 lines
529 B
Zig
21 lines
529 B
Zig
const std = @import("std");
|
|
|
|
pub fn build(b: *std.Build) void {
|
|
const optimize: std.builtin.OptimizeMode = .Debug;
|
|
|
|
const obj = b.addObject(.{
|
|
.name = "exports",
|
|
.root_source_file = .{ .path = "exports.zig" },
|
|
.target = .{},
|
|
.optimize = optimize,
|
|
});
|
|
const main = b.addTest(.{
|
|
.root_source_file = .{ .path = "main.zig" },
|
|
.optimize = optimize,
|
|
});
|
|
main.addObject(obj);
|
|
|
|
const test_step = b.step("test", "Test it");
|
|
test_step.dependOn(&main.step);
|
|
}
|