17 lines
660 B
Zig
17 lines
660 B
Zig
//! The thread-test test fixture as a binary package (docs/build-packages-plan.md):
|
|
//! this file names the binary and EXACTLY the modules its source imports —
|
|
//! build-support resolves each name from the domains this zon declares.
|
|
|
|
const std = @import("std");
|
|
const build_support = @import("build-support");
|
|
|
|
pub fn build(b: *std.Build) void {
|
|
const exe = build_support.userBinary(b, .{
|
|
.name = "thread-test",
|
|
.root_source_file = b.path("thread-test.zig"),
|
|
.imports = &.{ "logging", "memory", "process", "thread", "time" },
|
|
.threaded = true, // real atomics/TLS (docs/threading.md)
|
|
});
|
|
b.installArtifact(exe);
|
|
}
|