| ... | ... | @@ -1548,7 +1548,12 @@ fn addBuildingGLibCWorkItems(comp: *Compilation) !void { |
| 1548 | 1548 | } |
| 1549 | 1549 | |
| 1550 | 1550 | fn wantBuildGLibCFromSource(comp: *Compilation) bool { |
| 1551 | | return comp.bin_file.options.link_libc and |
| 1551 | const is_exe_or_dyn_lib = switch (comp.bin_file.options.output_mode) { |
| 1552 | .Obj => false, |
| 1553 | .Lib => comp.bin_file.options.link_mode == .Dynamic, |
| 1554 | .Exe => true, |
| 1555 | }; |
| 1556 | return comp.bin_file.options.link_libc and is_exe_or_dyn_lib and |
| 1552 | 1557 | comp.bin_file.options.libc_installation == null and |
| 1553 | 1558 | comp.bin_file.options.target.isGnuLibC(); |
| 1554 | 1559 | } |