From b6a47cef771e0337e33f8c06105244fda56bbf01 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 19 Oct 2023 20:03:36 -0700 Subject: [PATCH] build: disable Tracy by default even for debug builds Our usage has a memory leak and I don't know where it is and don't want to spend the time finding it because we very rarely use the tracy integration anyways. --- build.zig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build.zig b/build.zig index a6b4f9364..cf9e096e1 100644 --- a/build.zig +++ b/build.zig @@ -60,11 +60,14 @@ pub fn build(b: *std.Build) !void { var env = try std.process.getEnvMap(b.allocator); defer env.deinit(); + // Note: Our tracy usage has a huge memory leak currently so only enable + // this if you really want tracy integration and don't mind the memory leak. + // Or, please contribute a fix because I don't know where it is. tracy = b.option( bool, "tracy", "Enable Tracy integration (default true in Debug on Linux)", - ) orelse (optimize == .Debug and target.isLinux()); + ) orelse false; flatpak = b.option( bool,