Commit 97f93453 authored by Alp Mestanogullari's avatar Alp Mestanogullari Committed by Andrey Mokhov
Browse files

Set integer-gmp flag when appropriate (#684)

* set integer-gmp flag when appropriate, when building the compiler lib

* address Andrey's feedback
parent 9bf046f1
......@@ -22,7 +22,7 @@ packageArgs = do
mconcat
--------------------------------- base ---------------------------------
[ package base ? mconcat
[ builder (Cabal Flags) ? arg ('+' : pkgName intLib)
[ builder (Cabal Flags) ? notStage0 ? arg (pkgName intLib)
-- This fixes the 'unknown symbol stat' issue.
-- See: https://github.com/snowleopard/hadrian/issues/259.
......@@ -71,7 +71,8 @@ packageArgs = do
[ ghcWithNativeCodeGen ? arg "ncg"
, ghcWithInterpreter ? notStage0 ? arg "ghci"
, flag CrossCompiling ? arg "-terminfo"
, stage2 ? arg "integer-simple" ]
, notStage0 ? intLib == integerGmp ?
arg "integer-gmp" ]
, builder (Haddock BuildPackage) ? arg ("--optghc=-I" ++ path) ]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment