aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build.zig2
-rw-r--r--src/main.zig3
2 files changed, 3 insertions, 2 deletions
diff --git a/build.zig b/build.zig
index 2848ce9e6..930c1b5ea 100644
--- a/build.zig
+++ b/build.zig
@@ -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");
}