| ... | ... | @@ -1151,9 +1151,6 @@ fn buildOutputType( |
| 1151 | 1151 | try system_libs.put(args_iter.nextOrFatal(), .{ |
| 1152 | 1152 | .needed = false, |
| 1153 | 1153 | .weak = false, |
| 1154 | | // -l always dynamic links. For static libraries, |
| 1155 | | // users are expected to use positional arguments |
| 1156 | | // which are always unambiguous. |
| 1157 | 1154 | .preferred_mode = lib_preferred_mode, |
| 1158 | 1155 | .search_strategy = lib_search_strategy, |
| 1159 | 1156 | }); |
| ... | ... | @@ -1560,9 +1557,6 @@ fn buildOutputType( |
| 1560 | 1557 | try system_libs.put(arg["-l".len..], .{ |
| 1561 | 1558 | .needed = false, |
| 1562 | 1559 | .weak = false, |
| 1563 | | // -l always dynamic links. For static libraries, |
| 1564 | | // users are expected to use positional arguments |
| 1565 | | // which are always unambiguous. |
| 1566 | 1560 | .preferred_mode = lib_preferred_mode, |
| 1567 | 1561 | .search_strategy = lib_search_strategy, |
| 1568 | 1562 | }); |
| ... | ... | @@ -2675,7 +2669,7 @@ fn buildOutputType( |
| 2675 | 2669 | .lib = .{ |
| 2676 | 2670 | .needed = true, |
| 2677 | 2671 | .weak = false, |
| 2678 | | .path = undefined, |
| 2672 | .path = null, |
| 2679 | 2673 | }, |
| 2680 | 2674 | }); |
| 2681 | 2675 | continue; |
| ... | ... | @@ -2700,11 +2694,6 @@ fn buildOutputType( |
| 2700 | 2694 | } |
| 2701 | 2695 | // After this point, external_system_libs is used instead of system_libs. |
| 2702 | 2696 | |
| 2703 | | // libc++ depends on libc |
| 2704 | | if (link_libcpp) { |
| 2705 | | link_libc = true; |
| 2706 | | } |
| 2707 | | |
| 2708 | 2697 | // Trigger native system library path detection if necessary. |
| 2709 | 2698 | if (sysroot == null and cross_target.isNativeOs() and |
| 2710 | 2699 | (external_system_libs.len != 0 or want_native_include_dirs)) |
| ... | ... | @@ -6343,13 +6332,12 @@ fn accessLibPath( |
| 6343 | 6332 | // In the case of Darwin, the main check will be .dylib, so here we |
| 6344 | 6333 | // additionally check for .so files. |
| 6345 | 6334 | if (target.isDarwin() and link_mode == .Dynamic) so: { |
| 6346 | | // Prefer .tbd over .dylib. |
| 6347 | 6335 | test_path.clearRetainingCapacity(); |
| 6348 | 6336 | try test_path.writer().print("{s}" ++ sep ++ "lib{s}.so", .{ lib_dir_path, lib_name }); |
| 6349 | 6337 | try checked_paths.writer().print("\n {s}", .{test_path.items}); |
| 6350 | 6338 | fs.cwd().access(test_path.items, .{}) catch |err| switch (err) { |
| 6351 | 6339 | error.FileNotFound => break :so, |
| 6352 | | else => |e| fatal("unable to search for tbd library '{s}': {s}", .{ |
| 6340 | else => |e| fatal("unable to search for so library '{s}': {s}", .{ |
| 6353 | 6341 | test_path.items, @errorName(e), |
| 6354 | 6342 | }), |
| 6355 | 6343 | }; |