mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
tracy: not enabled if root doesn't export tracy_enabled
This commit is contained in:
@ -7,7 +7,7 @@ const root = @import("root");
|
||||
const SourceLocation = std.builtin.SourceLocation;
|
||||
|
||||
// Tracy is enabled if the root function tracy_enabled returns true.
|
||||
pub const enabled = @import("root").tracy_enabled();
|
||||
pub const enabled = @hasDecl(root, "tracy_enabled") and root.tracy_enabled();
|
||||
|
||||
// Bring in the correct implementation depending on if we're enabled or not.
|
||||
// See Impl for all the real doc comments.
|
||||
|
Reference in New Issue
Block a user