hadrian: (Re)building profiled stage2 binary builds unprofiled libGhc
Summary
The profiled ghc executable should not depend on the unprofiled ghc library.
However it is built by hadrian still.
$ winpty bash hadrian/build.sh -j8 --no-color -o_prof --flavour=prof --freeze1 _prof/stage1/bin/ghc.exe
Up to date
| Run Ghc CompileHs Stage1: compiler/types/Type.hs => _prof/stage1/compiler/build/Type.p_o
| Run Ghc CompileHs Stage1: compiler/prelude/PrimOp.hs => _prof/stage1/compiler/build/PrimOp.o
| Run Ghc CompileHs Stage1: compiler/iface/IfaceSyn.hs => _prof/stage1/compiler/build/IfaceSyn.o
| Run Ghc CompileHs Stage1: compiler/types/OptCoercion.hs => _prof/stage1/compiler/build/OptCoercion.o
| Run Ghc CompileHs Stage1: compiler/hsSyn/HsBinds.hs => _prof/stage1/compiler/build/HsBinds.o
| Run Ghc CompileHs Stage1: compiler/hsSyn/HsPat.hs => _prof/stage1/compiler/build/HsPat.o
| Run Ghc CompileHs Stage1: compiler/hsSyn/HsDecls.hs => _prof/stage1/compiler/build/HsDecls.o
| Run Ghc CompileHs Stage1: compiler/basicTypes/PatSyn.hs => _prof/stage1/compiler/build/PatSyn.p_o
| Run Ghc CompileHs Stage1: compiler/hsSyn/HsLit.hs => _prof/stage1/compiler/build/HsLit.p_o
...
Steps to reproduce
hadrian/build.sh -j8 --no-color -o_prof --flavour=prof --freeze1 _prof/stage1/bin/ghc.exe
Expected behavior
Only .p_o files should be built for stage2
Environment
Branch based on 6e5dfcd2
in master.
Optional:
- Operating System: Windows