mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
macho: include compiler-rt in static lib if requested
This commit is contained in:
parent
d12c8db642
commit
d18f52197d
@ -103,6 +103,10 @@ pub fn flushStaticLib(macho_file: *MachO, comp: *Compilation, module_obj_path: ?
|
||||
|
||||
if (module_obj_path) |path| try positionals.append(.{ .path = path });
|
||||
|
||||
if (comp.include_compiler_rt) {
|
||||
try positionals.append(.{ .path = comp.compiler_rt_obj.?.full_object_path });
|
||||
}
|
||||
|
||||
for (positionals.items) |obj| {
|
||||
parsePositional(macho_file, obj.path) catch |err| switch (err) {
|
||||
error.MalformedObject,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user