Forked from
Glasgow Haskell Compiler / GHC
5741 commits behind the upstream repository.

Rodrigo Mesquita
authored
Previously, we were branching on whether the build system was darwin to shortcut this check, but we really want to branch on whether the target system (which is what we are configuring ld_prog for) is darwin.