Commit 165f03e9 authored by Alp Mestanogullari's avatar Alp Mestanogullari Committed by Andrey Mokhov

Implement the equivalent of D4955 (#648)

* implement the equivalent of D4991 for hadrian

* use stage2 instead of stage == Stage2
parent 23dc432a
...@@ -75,10 +75,11 @@ packageArgs = do ...@@ -75,10 +75,11 @@ packageArgs = do
, ghcProfiled <$> flavour ? , ghcProfiled <$> flavour ?
notStage0 ? arg "--ghc-pkg-option=--force" ] notStage0 ? arg "--ghc-pkg-option=--force" ]
, builder CabalFlags ? mconcat , builder CabalFlags ? mconcat
[ ghcWithNativeCodeGen ? arg "ncg" [ ghcWithNativeCodeGen ? arg "ncg"
, ghcWithInterpreter ? notStage0 ? arg "ghci" , ghcWithInterpreter ? notStage0 ? arg "ghci"
, flag CrossCompiling ? arg "-terminfo" ] , flag CrossCompiling ? arg "-terminfo"
, stage2 ? arg "integer-simple" ]
, builder (Haddock BuildPackage) ? arg ("--optghc=-I" ++ path) ] , 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