build: get tracy dependency indirectly from thespian
This commit is contained in:
parent
c984f3c392
commit
34afb46078
2 changed files with 10 additions and 14 deletions
20
build.zig
20
build.zig
|
@ -206,7 +206,16 @@ pub fn build_exe(
|
|||
.optimize = optimize,
|
||||
});
|
||||
|
||||
const tracy_dep = if (tracy_enabled) b.dependency("tracy", .{
|
||||
const thespian_dep = b.dependency("thespian", .{
|
||||
.target = target,
|
||||
.optimize = optimize_deps,
|
||||
.enable_tracy = tracy_enabled,
|
||||
});
|
||||
|
||||
const thespian_mod = thespian_dep.module("thespian");
|
||||
const cbor_mod = thespian_dep.module("cbor");
|
||||
|
||||
const tracy_dep = if (tracy_enabled) thespian_dep.builder.dependency("tracy", .{
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
}) else undefined;
|
||||
|
@ -234,15 +243,6 @@ pub fn build_exe(
|
|||
});
|
||||
const syntax_mod = syntax_dep.module("syntax");
|
||||
|
||||
const thespian_dep = b.dependency("thespian", .{
|
||||
.target = target,
|
||||
.optimize = optimize_deps,
|
||||
.enable_tracy = tracy_enabled,
|
||||
});
|
||||
|
||||
const thespian_mod = thespian_dep.module("thespian");
|
||||
const cbor_mod = thespian_dep.module("cbor");
|
||||
|
||||
const help_mod = b.createModule(.{
|
||||
.root_source_file = b.path("help.md"),
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue