| ... | ... | @@ -69,7 +69,7 @@ pub fn main() !void { |
| 69 | 69 | const libc_installation: ?*LibCInstallation = libc: { |
| 70 | 70 | if (input_file) |libc_file| { |
| 71 | 71 | const libc = try arena.create(LibCInstallation); |
| 72 | | libc.* = LibCInstallation.parse(arena, libc_file, target) catch |err| { |
| 72 | libc.* = LibCInstallation.parse(arena, libc_file, &target) catch |err| { |
| 73 | 73 | fatal("unable to parse libc file at path {s}: {s}", .{ libc_file, @errorName(err) }); |
| 74 | 74 | }; |
| 75 | 75 | break :libc libc; |
| ... | ... | @@ -83,7 +83,7 @@ pub fn main() !void { |
| 83 | 83 | const libc_dirs = std.zig.LibCDirs.detect( |
| 84 | 84 | arena, |
| 85 | 85 | zig_lib_directory, |
| 86 | | target, |
| 86 | &target, |
| 87 | 87 | is_native_abi, |
| 88 | 88 | true, |
| 89 | 89 | libc_installation, |
| ... | ... | @@ -108,7 +108,7 @@ pub fn main() !void { |
| 108 | 108 | } |
| 109 | 109 | |
| 110 | 110 | if (input_file) |libc_file| { |
| 111 | | var libc = LibCInstallation.parse(gpa, libc_file, target) catch |err| { |
| 111 | var libc = LibCInstallation.parse(gpa, libc_file, &target) catch |err| { |
| 112 | 112 | fatal("unable to parse libc file at path {s}: {s}", .{ libc_file, @errorName(err) }); |
| 113 | 113 | }; |
| 114 | 114 | defer libc.deinit(gpa); |
| ... | ... | @@ -119,7 +119,7 @@ pub fn main() !void { |
| 119 | 119 | var libc = LibCInstallation.findNative(.{ |
| 120 | 120 | .allocator = gpa, |
| 121 | 121 | .verbose = true, |
| 122 | | .target = target, |
| 122 | .target = &target, |
| 123 | 123 | }) catch |err| { |
| 124 | 124 | fatal("unable to detect native libc: {s}", .{@errorName(err)}); |
| 125 | 125 | }; |