| ... | @@ -3928,7 +3928,7 @@ fn createModule( | ... | @@ -3928,7 +3928,7 @@ fn createModule( |
| 3928 | try create_module.rpath_list.appendSlice(arena, paths.rpaths.items); | 3928 | try create_module.rpath_list.appendSlice(arena, paths.rpaths.items); |
| 3929 | | 3929 | |
| 3930 | try create_module.lib_directories.ensureUnusedCapacity(arena, paths.lib_dirs.items.len); | 3930 | try create_module.lib_directories.ensureUnusedCapacity(arena, paths.lib_dirs.items.len); |
| 3931 | for (paths.lib_dirs.items) |path| addLibDirectoryWarn(&create_module.lib_directories, path); | 3931 | for (paths.lib_dirs.items) |path| addLibDirectoryWarn2(&create_module.lib_directories, path, true); |
| 3932 | } | 3932 | } |
| 3933 | | 3933 | |
| 3934 | if (create_module.libc_paths_file) |paths_file| { | 3934 | if (create_module.libc_paths_file) |paths_file| { |
| ... | @@ -7479,8 +7479,17 @@ fn anyObjectLinkInputs(link_inputs: []const link.UnresolvedInput) bool { | ... | @@ -7479,8 +7479,17 @@ fn anyObjectLinkInputs(link_inputs: []const link.UnresolvedInput) bool { |
| 7479 | } | 7479 | } |
| 7480 | | 7480 | |
| 7481 | fn addLibDirectoryWarn(lib_directories: *std.ArrayListUnmanaged(Directory), path: []const u8) void { | 7481 | fn addLibDirectoryWarn(lib_directories: *std.ArrayListUnmanaged(Directory), path: []const u8) void { |
| | 7482 | return addLibDirectoryWarn2(lib_directories, path, false); |
| | 7483 | } |
| | 7484 | |
| | 7485 | fn addLibDirectoryWarn2( |
| | 7486 | lib_directories: *std.ArrayListUnmanaged(Directory), |
| | 7487 | path: []const u8, |
| | 7488 | ignore_not_found: bool, |
| | 7489 | ) void { |
| 7482 | lib_directories.appendAssumeCapacity(.{ | 7490 | lib_directories.appendAssumeCapacity(.{ |
| 7483 | .handle = fs.cwd().openDir(path, .{}) catch |err| { | 7491 | .handle = fs.cwd().openDir(path, .{}) catch |err| { |
| | 7492 | if (err == error.FileNotFound and ignore_not_found) return; |
| 7484 | warn("unable to open library directory '{s}': {s}", .{ path, @errorName(err) }); | 7493 | warn("unable to open library directory '{s}': {s}", .{ path, @errorName(err) }); |
| 7485 | return; | 7494 | return; |
| 7486 | }, | 7495 | }, |