Hadrian: Rebuild detection with stage0 executable as target seems broken
When modifying files which are part of GHC stage0 does not get rebuild if I ask hadrian to build stage0 ghc.
When I ask for a full build however stage0 does get rebuilt.
andi@horzube:~/ghc_late_cc$ hadrian/build --flavour=default+profiled_ghc+no_dynamic_ghc+debug_info -o_prof_late_inline -j7 _prof/stage0/bin/ghc Up to date
Build completed in 1.00s
andi@horzube:~/ghc_late_cc$ hadrian/build --flavour=default+profiled_ghc+no_dynamic_ghc+debug_info -o_prof_late_inline -j7
Up to date
| Run Ghc FindHsDependencies Stage0: compiler/GHC.hs (and 621 more) => _prof_late_inline/stage0/compiler/.dependencies.mk
*** systool:cpp:
*** C pre-processor:
!!! systool:cpp: finished in 0.50 milliseconds, allocated 0.169 megabytes
*** Parser [GHC.SysTools.Process]:
!!! Parser [GHC.SysTools.Process]: finished in 3.85 milliseconds, allocated 12.724 megabytes
| Remove file _prof_late_inline/stage0/compiler/.dependencies.mk.bak
| Run Ghc CompileHs Stage0: compiler/GHC/Core/Opt/DmdAnal.hs => _prof_late_inline/stage0/compiler/build/GHC/Core/Opt/DmdAnal.p_o
| Run Ghc CompileHs Stage0: compiler/GHC/Core/Opt/DmdAnal.hs => _prof_late_inline/stage0/compiler/build/GHC/Core/Opt/DmdAnal.o
| Remove file _prof_late_inline/stage0/compiler/build/libHSghc-9.3_p.a
| Run Ar Pack Stage0: _prof_late_inline/stage0/compiler/build/c/cbits/cutils.p_o (and 624 more) => _prof_late_inline/stage0/compiler/build/libHSghc-9.3_p.a
ar: creating _prof_late_inline/stage0/compiler/build/libHSghc-9.3_p.a
| Remove file _prof_late_inline/stage0/compiler/build/libHSghc-9.3.a
| Run Ar Pack Stage0: _prof_late_inline/stage0/compiler/build/c/cbits/cutils.o (and 624 more) => _prof_late_inline/stage0/compiler/build/libHSghc-9.3.a
ar: creating _prof_late_inline/stage0/compiler/build/libHSghc-9.3.a
^C
andi@horzube:~/ghc_late_cc$