aboutsummaryrefslogtreecommitdiff
path: root/src/link/MachO.zig
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2022-11-08 16:07:45 +0100
committerJakub Konka <kubkon@jakubkonka.com>2022-11-09 18:35:06 +0100
commit7007ecdc05c2b1dac8a737386c390a5d07533ea7 (patch)
tree977962f7c64d5433bc9458f022f5df390943426f /src/link/MachO.zig
parent41b7e40d75bdd415da0daef6fa6a71dc4686320f (diff)
downloadzig-7007ecdc05c2b1dac8a737386c390a5d07533ea7.tar.gz
zig-7007ecdc05c2b1dac8a737386c390a5d07533ea7.zip
macho: create dSYM bundle directly in the emit dir
Diffstat (limited to 'src/link/MachO.zig')
-rw-r--r--src/link/MachO.zig5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/link/MachO.zig b/src/link/MachO.zig
index cc805ee711..a25d13fdf5 100644
--- a/src/link/MachO.zig
+++ b/src/link/MachO.zig
@@ -329,8 +329,7 @@ pub fn openPath(allocator: Allocator, options: link.Options) !*MachO {
if (!options.strip and options.module != null) {
// Create dSYM bundle.
- const dir = options.module.?.zig_cache_artifact_directory;
- log.debug("creating {s}.dSYM bundle in {?s}", .{ emit.sub_path, dir.path });
+ log.debug("creating {s}.dSYM bundle", .{emit.sub_path});
const d_sym_path = try fmt.allocPrint(
allocator,
@@ -339,7 +338,7 @@ pub fn openPath(allocator: Allocator, options: link.Options) !*MachO {
);
defer allocator.free(d_sym_path);
- var d_sym_bundle = try dir.handle.makeOpenPath(d_sym_path, .{});
+ var d_sym_bundle = try emit.directory.handle.makeOpenPath(d_sym_path, .{});
defer d_sym_bundle.close();
const d_sym_file = try d_sym_bundle.createFile(emit.sub_path, .{