diff options
author | 2022-12-30 04:44:04 -0800 | |
---|---|---|
committer | 2022-12-30 04:46:52 -0800 | |
commit | f444e628ca676a7966a34a1da7cf9f4f26af7fe0 (patch) | |
tree | e3381c1227676fe05370cec976293c43739ebd3d | |
parent | 42be4e52fe5312e30c66ae28dccaa432e509ff86 (diff) | |
download | bun-f444e628ca676a7966a34a1da7cf9f4f26af7fe0.tar.gz bun-f444e628ca676a7966a34a1da7cf9f4f26af7fe0.tar.zst bun-f444e628ca676a7966a34a1da7cf9f4f26af7fe0.zip |
Don't use zig's memcpy function
It is very slow
-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"); } |