diff options
| author | Meghan <hello@nektro.net> | 2022-01-07 00:06:06 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-07 00:06:06 -0500 |
| commit | c08b190c6918b33d27ceffe1ab3afd5d7f6370ea (patch) | |
| tree | 6dac2ac254e704b2c984f5135c98cd0fd85d4b15 /src/tracy.zig | |
| parent | 7f4fdcc4fce79cc1277c2a89a6a4136293c1b2e5 (diff) | |
| download | zig-c08b190c6918b33d27ceffe1ab3afd5d7f6370ea.tar.gz zig-c08b190c6918b33d27ceffe1ab3afd5d7f6370ea.zip | |
lint: duplicate import (#10519)
Diffstat (limited to 'src/tracy.zig')
| -rw-r--r-- | src/tracy.zig | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/tracy.zig b/src/tracy.zig index 033cf1bcf0..4ecae74481 100644 --- a/src/tracy.zig +++ b/src/tracy.zig @@ -1,9 +1,10 @@ const std = @import("std"); const builtin = @import("builtin"); +const build_options = @import("build_options"); -pub const enable = if (builtin.is_test) false else @import("build_options").enable_tracy; -pub const enable_allocation = enable and @import("build_options").enable_tracy_allocation; -pub const enable_callstack = enable and @import("build_options").enable_tracy_callstack; +pub const enable = if (builtin.is_test) false else build_options.enable_tracy; +pub const enable_allocation = enable and build_options.enable_tracy_allocation; +pub const enable_callstack = enable and build_options.enable_tracy_callstack; // TODO: make this configurable const callstack_depth = 10; |
