| ... | @@ -707,6 +707,17 @@ fn accessLibPath( | ... | @@ -707,6 +707,17 @@ fn accessLibPath( |
| 707 | return true; | 707 | return true; |
| 708 | } | 708 | } |
| 709 | | 709 | |
| | 710 | noextension: { |
| | 711 | test_path.clearRetainingCapacity(); |
| | 712 | try test_path.writer().print("{s}" ++ sep ++ "{s}", .{ search_dir, lib_name }); |
| | 713 | try checked_paths.append(try gpa.dupe(u8, test_path.items)); |
| | 714 | fs.cwd().access(test_path.items, .{}) catch |err| switch (err) { |
| | 715 | error.FileNotFound => break :noextension, |
| | 716 | else => |e| return e, |
| | 717 | }; |
| | 718 | return true; |
| | 719 | } |
| | 720 | |
| 710 | return false; | 721 | return false; |
| 711 | } | 722 | } |
| 712 | | 723 | |