feat(Cabal): Always pass -pgml to GHC so that linking uses the toolchain Cabal resolved - #12322
feat(Cabal): Always pass -pgml to GHC so that linking uses the toolchain Cabal resolved#12322zlonast wants to merge 8 commits into
-pgml to GHC so that linking uses the toolchain Cabal resolved#12322Conversation
98a6035 to
9a079d9
Compare
|
Perhaps @MangoIV has an opinion since he's been working on the linker selection stuff in GHC recently |
|
In my opinion, this is not the correct way to do it. GHC bindists should be configured to use a specific C toolchain. A user will inevitably make subtly wrong choices here, that's why we have the configure script. |
|
In my opinion, cabal should ask GHC what toolchain it was configured with and then use that, instead of the other way around. |
|
This already makes sense if you consider that GHC compiled for some specific backend will not even be able to respect toolchain options found by cabal, e.g. a ghc targeting the JS backend will need the emscripten toolchain. |
|
Also, as I understand it, the |
|
I'm closing in favor #12333 |
Main idea #9801 (comment)
Template Α: This PR modifies behaviour or interface
Include the following checklist in your PR:
significance: significantin the changelog file.