Hadrian: support in-tree GMP
authorAlec Theriault <alec.theriault@gmail.com>
Thu, 6 Dec 2018 04:46:21 +0000 (20:46 -0800)
committerBen Gamari <ben@well-typed.com>
Wed, 23 Jan 2019 19:07:28 +0000 (14:07 -0500)
commitefc95841503a78504c0aa00925fb22c4ec4627af
tree88ccd49a18f83f19418131e8cb31b635bb8cfddb
parentdaff24bc74c1fed7efb1acde2d8f90dc9621a308
Hadrian: support in-tree GMP

Summary:
This adds top-level configure flags '--with-intree-gmp' and
'--with-framework-preferred', both of which are especially relevant
on MacOS.

Besides gaining two new flags, Hadrian also had to be taught what to
do with the 'framework' in .cabal files.

Test Plan:
./boot && ./configure --with-intree-gmp && ./hadrian/build.sh
./boot && ./configure --with-gmp-framework-preferred && ./hadrian/build.sh # on macos

Reviewers: carter, snowleopard, alpmestan, hvr, goldfire, bgamari

Subscribers: rwbarton, erikd

GHC Trac Issues: #16001

Differential Revision: https://phabricator.haskell.org/D5417
aclocal.m4
hadrian/cfg/system.config.in
hadrian/src/Hadrian/Haskell/Cabal/Parse.hs
hadrian/src/Hadrian/Haskell/Cabal/Type.hs
hadrian/src/Oracles/Flag.hs
hadrian/src/Settings/Builders/Ghc.hs
hadrian/src/Settings/Packages.hs
libraries/integer-gmp/config.mk.in
libraries/integer-gmp/configure.ac
mk/config.mk.in
rules/build-package-data.mk