workaround zig tarball bug (#599)
This commit is contained in:
parent
b4ccfeecef
commit
eb60f75413
@ -1052,10 +1052,15 @@ fn stdUriFromLibPath(allocator: std.mem.Allocator, zig_lib_path: ?[]const u8) !?
|
||||
if (zig_lib_path) |zpath| {
|
||||
const std_path = std.fs.path.resolve(allocator, &[_][]const u8{
|
||||
zpath, "./std/std.zig",
|
||||
}) catch |err| {
|
||||
log.debug("Failed to resolve zig std library path, error: {}", .{err});
|
||||
}) catch |first_std_err| blk: {
|
||||
// workaround for https://github.com/ziglang/zig/issues/12516
|
||||
break :blk std.fs.path.resolve(allocator, &[_][]const u8{
|
||||
zpath, "./zig/std/std.zig",
|
||||
}) catch {
|
||||
log.debug("Failed to resolve zig std library path, error: {}", .{first_std_err});
|
||||
return null;
|
||||
};
|
||||
};
|
||||
|
||||
defer allocator.free(std_path);
|
||||
// Get the std_path as a URI, so we can just append to it!
|
||||
|
Loading…
Reference in New Issue
Block a user