| ... | ... | @@ -44,7 +44,7 @@ pub fn main(init: std.process.Init.Minimal) !void { |
| 44 | 44 | try renderErrorMessage(stderr.terminal(), .err, "expected zig lib dir as first argument", .{}); |
| 45 | 45 | std.process.exit(1); |
| 46 | 46 | } |
| 47 | | const zig_lib_dir = args[1]; |
| 47 | const zig_lib_dir = std.mem.cutPrefix(u8, args[1], "--zig-lib=") orelse @panic("bad --zig-lib= arg"); |
| 48 | 48 | var cli_args = args[2..]; |
| 49 | 49 | |
| 50 | 50 | var zig_integration = false; |
| ... | ... | @@ -639,7 +639,7 @@ fn getIncludePaths( |
| 639 | 639 | }; |
| 640 | 640 | const target = std.zig.resolveTargetQueryOrFatal(io, target_query); |
| 641 | 641 | const is_native_abi = target_query.isNativeAbi(); |
| 642 | | const detected_libc = std.zig.LibCDirs.detect(arena, io, .{ .root_dir = .cwd, .sub_path = zig_lib_dir }, &target, is_native_abi, true, null, environ_map) catch { |
| 642 | const detected_libc = std.zig.LibCDirs.detect(arena, io, .{ .root_dir = .cwd(), .sub_path = zig_lib_dir }, &target, is_native_abi, true, null, environ_map) catch { |
| 643 | 643 | if (includes == .any) { |
| 644 | 644 | // fall back to mingw |
| 645 | 645 | includes = .gnu; |
| ... | ... | @@ -668,7 +668,7 @@ fn getIncludePaths( |
| 668 | 668 | const detected_libc = std.zig.LibCDirs.detect( |
| 669 | 669 | arena, |
| 670 | 670 | io, |
| 671 | | .{ .root_dir = .cwd, .sub_path = zig_lib_dir }, |
| 671 | .{ .root_dir = .cwd(), .sub_path = zig_lib_dir }, |
| 672 | 672 | &target, |
| 673 | 673 | is_native_abi, |
| 674 | 674 | true, |