| ... | @@ -329,8 +329,7 @@ pub fn openPath(allocator: Allocator, options: link.Options) !*MachO { | ... | @@ -329,8 +329,7 @@ pub fn openPath(allocator: Allocator, options: link.Options) !*MachO { |
| 329 | | 329 | |
| 330 | if (!options.strip and options.module != null) { | 330 | if (!options.strip and options.module != null) { |
| 331 | // Create dSYM bundle. | 331 | // Create dSYM bundle. |
| 332 | const dir = options.module.?.zig_cache_artifact_directory; | 332 | log.debug("creating {s}.dSYM bundle", .{emit.sub_path}); |
| 333 | log.debug("creating {s}.dSYM bundle in {?s}", .{ emit.sub_path, dir.path }); | | |
| 334 | | 333 | |
| 335 | const d_sym_path = try fmt.allocPrint( | 334 | const d_sym_path = try fmt.allocPrint( |
| 336 | allocator, | 335 | allocator, |
| ... | @@ -339,7 +338,7 @@ pub fn openPath(allocator: Allocator, options: link.Options) !*MachO { | ... | @@ -339,7 +338,7 @@ pub fn openPath(allocator: Allocator, options: link.Options) !*MachO { |
| 339 | ); | 338 | ); |
| 340 | defer allocator.free(d_sym_path); | 339 | defer allocator.free(d_sym_path); |
| 341 | | 340 | |
| 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, .{}); |
| 343 | defer d_sym_bundle.close(); | 342 | defer d_sym_bundle.close(); |
| 344 | | 343 | |
| 345 | const d_sym_file = try d_sym_bundle.createFile(emit.sub_path, .{ | 344 | const d_sym_file = try d_sym_bundle.createFile(emit.sub_path, .{ |