fixes for core dependencies on std c lib

This commit is contained in:
peterino2 2025-11-01 16:33:17 -07:00
parent 2e2ab68178
commit 7aa70eb5d5
3 changed files with 7 additions and 4 deletions

View File

@ -169,12 +169,12 @@ pub fn init(backingAllocator: std.mem.Allocator, settings: SetupSettings) @This(
core.engine_logs("[dmt] Enabling Detailed Memory Tracking");
}
const stackCompactor = if (EnableMemoryTimeline) core.StackCompactor.create(std.heap.c_allocator) catch null else null;
const stackCompactor = if (EnableMemoryTimeline) core.StackCompactor.create(std.heap.smp_allocator) catch null else null;
return .{
.backingAllocator = backingAllocator,
.stackCompactor = stackCompactor,
.timeline = if (EnableMemoryTimeline) EventTimeline.init(std.heap.c_allocator) catch null else null,
.timeline = if (EnableMemoryTimeline) EventTimeline.init(std.heap.smp_allocator) catch null else null,
};
}

View File

@ -23,6 +23,9 @@ test "simple systems setup for core" {
defer core.shutdown_module(allocator);
engine_logs("systems started, shutting down");
engine_logs("this is a new print added to the test function");
engine_logs("this is a new print added to the test function");
memory.MTPrintStatsDelta();
try test_loadingConfigs();

4
lib/tracy/build.zig vendored
View File

@ -21,8 +21,8 @@ pub fn build(b: *std.Build) void {
.target = target,
.optimize = optimize,
.root_source_file = b.path("tracy.zig"),
.link_libc = true,
.link_libcpp = true,
.link_libc = tracy_enabled,
.link_libcpp = tracy_enabled,
});
if (tracy_enabled) {