| ... | @@ -1769,7 +1769,15 @@ pub fn create(gpa: Allocator, arena: Allocator, options: CreateOptions) !*Compil | ... | @@ -1769,7 +1769,15 @@ pub fn create(gpa: Allocator, arena: Allocator, options: CreateOptions) !*Compil |
| 1769 | // If linking against host libc installation, instead queue up jobs | 1769 | // If linking against host libc installation, instead queue up jobs |
| 1770 | // for loading those files in the linker. | 1770 | // for loading those files in the linker. |
| 1771 | if (comp.config.link_libc and is_exe_or_dyn_lib) { | 1771 | if (comp.config.link_libc and is_exe_or_dyn_lib) { |
| 1772 | if (comp.libc_installation) |lci| { | 1772 | // If the "is darwin" check is moved below the libc_installation check below, |
| | 1773 | // error.LibCInstallationMissingCrtDir is returned from lci.resolveCrtPaths(). |
| | 1774 | if (target.isDarwin()) { |
| | 1775 | switch (target.abi) { |
| | 1776 | .none, .simulator, .macabi => {}, |
| | 1777 | else => return error.LibCUnavailable, |
| | 1778 | } |
| | 1779 | // TODO delete logic from MachO flush() and queue up tasks here instead. |
| | 1780 | } else if (comp.libc_installation) |lci| { |
| 1773 | const basenames = LibCInstallation.CrtBasenames.get(.{ | 1781 | const basenames = LibCInstallation.CrtBasenames.get(.{ |
| 1774 | .target = target, | 1782 | .target = target, |
| 1775 | .link_libc = comp.config.link_libc, | 1783 | .link_libc = comp.config.link_libc, |