build: update build for zig-0.15.0-dev.1034+bd97b6618

This commit is contained in:
CJ van den Berg 2025-07-15 17:24:30 +02:00
parent 9af61100d0
commit b7361361bc
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
3 changed files with 18 additions and 13 deletions

View file

@ -34,10 +34,13 @@ pub fn build(b: *std.Build) void {
const asio_dep = b.dependency("asio", mode);
const tracy_dep = if (tracy_enabled) b.dependency("tracy", mode) else undefined;
const lib = b.addStaticLibrary(.{
const lib = b.addLibrary(.{
.name = "thespian",
.target = target,
.optimize = optimize,
.linkage = .static,
.root_module = b.createModule(.{
.target = target,
.optimize = optimize,
}),
});
if (tracy_enabled) {
lib.root_module.addCMacro("TRACY_ENABLE", "1");
@ -90,9 +93,11 @@ pub fn build(b: *std.Build) void {
thespian_mod.linkLibrary(lib);
const tests = b.addTest(.{
.root_source_file = b.path("test/tests.zig"),
.target = target,
.optimize = optimize,
.root_module = b.createModule(.{
.root_source_file = b.path("test/tests.zig"),
.target = target,
.optimize = optimize,
}),
});
tests.root_module.addImport("build_options", options_mod);