| ... | @@ -332,7 +332,13 @@ pub fn openPath(allocator: Allocator, options: link.Options) !*MachO { | ... | @@ -332,7 +332,13 @@ pub fn openPath(allocator: Allocator, options: link.Options) !*MachO { |
| 332 | return self; | 332 | return self; |
| 333 | } | 333 | } |
| 334 | | 334 | |
| 335 | if (!options.strip and options.module != null) { | 335 | if (!options.strip and options.module != null) blk: { |
| | 336 | // TODO once I add support for converting (and relocating) DWARF info from relocatable |
| | 337 | // object files, this check becomes unnecessary. |
| | 338 | // For now, for LLVM backend we fallback to the old-fashioned stabs approach used by |
| | 339 | // stage1. |
| | 340 | if (build_options.have_llvm and options.use_llvm) break :blk; |
| | 341 | |
| 336 | // Create dSYM bundle. | 342 | // Create dSYM bundle. |
| 337 | const dir = options.module.?.zig_cache_artifact_directory; | 343 | const dir = options.module.?.zig_cache_artifact_directory; |
| 338 | log.debug("creating {s}.dSYM bundle in {s}", .{ emit.sub_path, dir.path }); | 344 | log.debug("creating {s}.dSYM bundle in {s}", .{ emit.sub_path, dir.path }); |