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@smart-cactus.org>
Wed, 20 Feb 2019 19:28:54 +0000 (14:28 -0500)
commit86002ee23e23110ae08eb896c2f086778ff44c17
tree248c1e5b4d7a872b129012e4d134c00530974f80
parent9c71476af7df1f1e9ba6a8a6c2a92446b20b398a
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