mirror of
https://github.com/ziglang/zig.git
synced 2025-12-29 01:23:17 +00:00
macho: do not create dSYM bundle for stage2 LLVM backend
Instead, we fallback to the old-fashioned stabs-based mechanism until I add the missing mechanism for extracting and relocating DWARF from relocatable object files and writing it into a dSYM bundle.
This commit is contained in:
parent
406507c6dc
commit
d15bbebe2e
@ -332,7 +332,13 @@ pub fn openPath(allocator: Allocator, options: link.Options) !*MachO {
|
||||
return self;
|
||||
}
|
||||
|
||||
if (!options.strip and options.module != null) {
|
||||
if (!options.strip and options.module != null) blk: {
|
||||
// TODO once I add support for converting (and relocating) DWARF info from relocatable
|
||||
// object files, this check becomes unnecessary.
|
||||
// For now, for LLVM backend we fallback to the old-fashioned stabs approach used by
|
||||
// stage1.
|
||||
if (build_options.have_llvm and options.use_llvm) break :blk;
|
||||
|
||||
// Create dSYM bundle.
|
||||
const dir = options.module.?.zig_cache_artifact_directory;
|
||||
log.debug("creating {s}.dSYM bundle in {s}", .{ emit.sub_path, dir.path });
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user