diff options
author | Alec Theriault <alec.theriault@gmail.com> | 2018-12-05 20:46:21 -0800 |
---|---|---|
committer | Ben Gamari <ben@well-typed.com> | 2019-01-23 14:07:28 -0500 |
commit | efc95841503a78504c0aa00925fb22c4ec4627af (patch) | |
tree | 88ccd49a18f83f19418131e8cb31b635bb8cfddb /hadrian/src/Oracles/Flag.hs | |
parent | daff24bc74c1fed7efb1acde2d8f90dc9621a308 (diff) | |
download | haskell-efc95841503a78504c0aa00925fb22c4ec4627af.tar.gz |
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
Diffstat (limited to 'hadrian/src/Oracles/Flag.hs')
-rw-r--r-- | hadrian/src/Oracles/Flag.hs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hadrian/src/Oracles/Flag.hs b/hadrian/src/Oracles/Flag.hs index 57dbf2decb..b294cebc93 100644 --- a/hadrian/src/Oracles/Flag.hs +++ b/hadrian/src/Oracles/Flag.hs @@ -13,6 +13,8 @@ data Flag = ArSupportsAtFile | CrossCompiling | GccIsClang | GhcUnregisterised + | GmpInTree + | GmpFrameworkPref | LeadingUnderscore | SolarisBrokenShld | SplitObjectsBroken @@ -29,6 +31,8 @@ flag f = do CrossCompiling -> "cross-compiling" GccIsClang -> "gcc-is-clang" GhcUnregisterised -> "ghc-unregisterised" + GmpInTree -> "intree-gmp" + GmpFrameworkPref -> "gmp-framework-preferred" LeadingUnderscore -> "leading-underscore" SolarisBrokenShld -> "solaris-broken-shld" SplitObjectsBroken -> "split-objects-broken" |