mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
Save LLVM IR in debug build
This commit is contained in:
@@ -278,6 +278,10 @@ pub fn build(b: *std.build.Builder) !void {
|
||||
obj.setBuildMode(mode);
|
||||
obj.linkLibC();
|
||||
obj.linkLibCpp();
|
||||
if (mode == std.builtin.Mode.Debug)
|
||||
obj.emit_llvm_ir = .{
|
||||
.emit_to = try std.fmt.allocPrint(b.allocator, "{s}/{s}.ll", .{ output_dir, bun_executable_name }),
|
||||
};
|
||||
|
||||
obj.strip = false;
|
||||
obj.bundle_compiler_rt = true;
|
||||
|
||||
Reference in New Issue
Block a user