diff options
-rw-r--r-- | build.zig | 2 | ||||
-rw-r--r-- | src/main.zig | 3 |
2 files changed, 3 insertions, 2 deletions
@@ -90,7 +90,7 @@ fn addInternalPackages(step: *std.build.LibExeObjStep, allocator: std.mem.Alloca // workaround for https://github.com/ziglang/zig/issues/14099 const compiler_rt: std.build.Pkg = .{ .name = "compiler_rt", - .source = .{ .path = try std.fmt.allocPrint(allocator, "{s}/lib/compiler_rt.zig", .{std.fs.path.dirname(zig_exe).?}) }, + .source = .{ .path = try std.fmt.allocPrint(allocator, "{s}/lib/compiler_rt/stack_probe.zig", .{std.fs.path.dirname(zig_exe).?}) }, }; step.addPackage(compiler_rt); } diff --git a/src/main.zig b/src/main.zig index 9b7c5eb08..61e202788 100644 --- a/src/main.zig +++ b/src/main.zig @@ -45,5 +45,6 @@ pub const build_options = @import("build_options"); pub const bun = @import("./bun.zig"); comptime { - _ = @import("compiler_rt"); + if (!bun.Environment.isRelease) + _ = @import("compiler_rt"); } |