mirror of
https://github.com/ziglang/zig.git
synced 2025-12-22 14:13:08 +00:00
This was from master branch commit c93e0d86187cb589d6726acd36f741f3d87a96be. 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);
|
|
}
|