Hadrian's --configure flag is broken
From a clean tree:
$ hadrian/build.sh -c -j --flavour=quickest
| Running boot...
Error when running Shake build system:
at action, called at src/Rules.hs:68:19 in main:Rules
at apply1, called at src/Development/Shake/Internal/Rules/Oracle.hs:159:32 in shake-0.18.2-6cb58368c613a2f650f30718582c63d68d1243def9869c49abb5cadabf4542ec:Development.Shake.Internal.Rules.Oracle
* Depends on: OracleQ (KeyValue ("hadrian/cfg/system.config","host-os"))
at need, called at src/Hadrian/Oracles/TextFile.hs:90:9 in main:Hadrian.Oracles.TextFile
* Depends on: hadrian/cfg/system.config
at &%>, called at src/Rules/Configure.hs:21:5 in main:Rules.Configure
* Depends on: hadrian/cfg/system.config mk/config.h compiler/ghc.cabal rts/rts.cabal
at apply1, called at src/Development/Shake/Internal/Rules/Oracle.hs:159:32 in shake-0.18.2-6cb58368c613a2f650f30718582c63d68d1243def9869c49abb5cadabf4542ec:Development.Shake.Internal.Rules.Oracle
* Depends on: OracleQ (KeyValue ("hadrian/cfg/system.config","host-os"))
* Raised the exception:
Build system error - recursion detected:
Key type: OracleQ KeyValue
Key value: OracleQ (KeyValue ("hadrian/cfg/system.config","host-os"))
Rules may not be recursive
It happens with both the stack and cabal-install based scripts.