From ffd48dc7a70118635a6a5f3b6700216f9201566c Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Tue, 9 May 2023 13:55:29 -0700 Subject: fix tracy i think --- src/bundler/bundle_v2.zig | 4 ++++ src/tracy.zig | 5 +---- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/bundler/bundle_v2.zig b/src/bundler/bundle_v2.zig index 6bb307381..edbe0eb65 100644 --- a/src/bundler/bundle_v2.zig +++ b/src/bundler/bundle_v2.zig @@ -688,6 +688,10 @@ pub const BundleV2 = struct { bun.tracy.start(); + if (!bun.tracy.isConnected()) { + std.time.sleep(std.time.ns_per_ms * 10); + } + if (!bun.tracy.isConnected()) { Output.prettyErrorln("Tracy is not connected. Is Tracy running on your computer?", .{}); Output.flush(); diff --git a/src/tracy.zig b/src/tracy.zig index 3563bd0e9..583a3be25 100644 --- a/src/tracy.zig +++ b/src/tracy.zig @@ -491,9 +491,6 @@ fn dlsym(comptime Type: type, comptime symbol: [:0]const u8) ?Type { get: { if (Handle.handle == null) { - const RTLD_LAZY = 1; - const RTLD_LOCAL = 4; - const paths_to_try = if (bun.Environment.isMac) .{ "/usr/local/opt/tracy/lib/libtracy.dylib", "/usr/local/lib/libtracy.dylib", @@ -520,7 +517,7 @@ fn dlsym(comptime Type: type, comptime symbol: [:0]const u8) ?Type { } else .{}; const RLTD = if (bun.Environment.isMac) - RTLD_LAZY | RTLD_LOCAL + -2 else 0; -- cgit v1.2.3