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.
This commit is contained in:
Mitchell Hashimoto
2023-10-19 20:03:36 -07:00
parent 088ae5c454
commit b6a47cef77

View File

@ -60,11 +60,14 @@ pub fn build(b: *std.Build) !void {
var env = try std.process.getEnvMap(b.allocator); var env = try std.process.getEnvMap(b.allocator);
defer env.deinit(); 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( tracy = b.option(
bool, bool,
"tracy", "tracy",
"Enable Tracy integration (default true in Debug on Linux)", "Enable Tracy integration (default true in Debug on Linux)",
) orelse (optimize == .Debug and target.isLinux()); ) orelse false;
flatpak = b.option( flatpak = b.option(
bool, bool,