diff options
-rw-r--r-- | src/bundler/bundle_v2.zig | 4 | ||||
-rw-r--r-- | src/tracy.zig | 5 |
2 files changed, 5 insertions, 4 deletions
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 @@ -689,6 +689,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(); break :tracy; 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; |