mirror of
https://github.com/ziglang/zig.git
synced 2024-11-30 09:02:32 +00:00
elf: re-enable linking compiler_rt
This commit is contained in:
parent
ce88df497c
commit
d37cb60621
@ -1082,10 +1082,9 @@ pub fn flushModule(self: *Elf, comp: *Compilation, prog_node: *std.Progress.Node
|
||||
if (comp.compiler_rt_obj) |x| break :blk x.full_object_path;
|
||||
break :blk null;
|
||||
};
|
||||
_ = compiler_rt_path;
|
||||
// if (compiler_rt_path) |path| {
|
||||
// try positionals.append(.{ .path = path });
|
||||
// }
|
||||
if (compiler_rt_path) |path| {
|
||||
try positionals.append(.{ .path = path });
|
||||
}
|
||||
|
||||
for (positionals.items) |obj| {
|
||||
const in_file = try std.fs.cwd().openFile(obj.path, .{});
|
||||
|
@ -84,7 +84,7 @@ pub const File = union(enum) {
|
||||
|
||||
pub fn markLive(file: File, elf_file: *Elf) void {
|
||||
switch (file) {
|
||||
.zig_module, .linker_defined => {},
|
||||
.zig_module, .linker_defined => unreachable,
|
||||
inline else => |x| x.markLive(elf_file),
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user