authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2022-11-08 16:07:45+01:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2022-11-09 18:35:06+01:00
log7007ecdc05c2b1dac8a737386c390a5d07533ea7
tree977962f7c64d5433bc9458f022f5df390943426f
parent41b7e40d75bdd415da0daef6fa6a71dc4686320f

macho: create dSYM bundle directly in the emit dir


1 files changed, 2 insertions(+), 3 deletions(-)

src/link/MachO.zig+2-3
......@@ -329,8 +329,7 @@ pub fn openPath(allocator: Allocator, options: link.Options) !*MachO {
329329
330330 if (!options.strip and options.module != null) {
331331 // Create dSYM bundle.
332 const dir = options.module.?.zig_cache_artifact_directory;
333 log.debug("creating {s}.dSYM bundle in {?s}", .{ emit.sub_path, dir.path });
332 log.debug("creating {s}.dSYM bundle", .{emit.sub_path});
334333
335334 const d_sym_path = try fmt.allocPrint(
336335 allocator,
......@@ -339,7 +338,7 @@ pub fn openPath(allocator: Allocator, options: link.Options) !*MachO {
339338 );
340339 defer allocator.free(d_sym_path);
341340
342 var d_sym_bundle = try dir.handle.makeOpenPath(d_sym_path, .{});
341 var d_sym_bundle = try emit.directory.handle.makeOpenPath(d_sym_path, .{});
343342 defer d_sym_bundle.close();
344343
345344 const d_sym_file = try d_sym_bundle.createFile(emit.sub_path, .{