mirror of
https://github.com/ziglang/zig.git
synced 2024-11-29 00:22:33 +00:00
macho: return from flushModule if building object for static lib
This commit is contained in:
parent
30ef033693
commit
091238254e
@ -451,6 +451,10 @@ pub fn flushModule(self: *MachO, comp: *Compilation, prog_node: *std.Progress.No
|
|||||||
|
|
||||||
llvm_object.destroy(self.base.allocator);
|
llvm_object.destroy(self.base.allocator);
|
||||||
self.llvm_object = null;
|
self.llvm_object = null;
|
||||||
|
|
||||||
|
if (self.base.options.output_mode == .Lib and self.base.options.link_mode == .Static) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user