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| {
|
if (zig_lib_path) |zpath| {
|
||||||
const std_path = std.fs.path.resolve(allocator, &[_][]const u8{
|
const std_path = std.fs.path.resolve(allocator, &[_][]const u8{
|
||||||
zpath, "./std/std.zig",
|
zpath, "./std/std.zig",
|
||||||
}) catch |err| {
|
}) catch |first_std_err| blk: {
|
||||||
log.debug("Failed to resolve zig std library path, error: {}", .{err});
|
// 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;
|
return null;
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
defer allocator.free(std_path);
|
defer allocator.free(std_path);
|
||||||
// Get the std_path as a URI, so we can just append to it!
|
// Get the std_path as a URI, so we can just append to it!
|
||||||
|
Loading…
Reference in New Issue
Block a user