| ... | @@ -363,8 +363,8 @@ pub fn openPath(allocator: *Allocator, sub_path: []const u8, options: link.Optio | ... | @@ -363,8 +363,8 @@ pub fn openPath(allocator: *Allocator, sub_path: []const u8, options: link.Optio |
| 363 | self.base.file = file; | 363 | self.base.file = file; |
| 364 | | 364 | |
| 365 | // Create dSYM bundle. | 365 | // Create dSYM bundle. |
| 366 | if (options.module) |mod| { | 366 | if (!options.strip and options.module != null) { |
| 367 | const dir = mod.zig_cache_artifact_directory; | 367 | const dir = options.module.?.zig_cache_artifact_directory; |
| 368 | log.debug("creating {s}.dSYM bundle in {s}", .{ sub_path, dir.path }); | 368 | log.debug("creating {s}.dSYM bundle in {s}", .{ sub_path, dir.path }); |
| 369 | | 369 | |
| 370 | const d_sym_path = try fmt.allocPrint( | 370 | const d_sym_path = try fmt.allocPrint( |
| ... | @@ -399,7 +399,7 @@ pub fn openPath(allocator: *Allocator, sub_path: []const u8, options: link.Optio | ... | @@ -399,7 +399,7 @@ pub fn openPath(allocator: *Allocator, sub_path: []const u8, options: link.Optio |
| 399 | | 399 | |
| 400 | switch (options.output_mode) { | 400 | switch (options.output_mode) { |
| 401 | .Exe => {}, | 401 | .Exe => {}, |
| 402 | .Obj => return error.TODOImplementWritingObjFiles, | 402 | .Obj => {}, |
| 403 | .Lib => return error.TODOImplementWritingLibFiles, | 403 | .Lib => return error.TODOImplementWritingLibFiles, |
| 404 | } | 404 | } |
| 405 | | 405 | |