authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2021-05-14 22:27:26+02:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2021-05-14 22:27:26+02:00
loge93254412b2bc516c3add5b46843b94b3a0f9239
tree1ebfefce1d38281686391b763439dcef53ae7a38
parentaf9c6f2c696201e16d95f79a7275aae19b34cd59

macho: if strip is true, do not generate dSYM


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

src/link/MachO.zig+3-3
...@@ -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;
364364
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 });
369369
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
399399
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 }
405405