snowleopard / hadrian

Hadrian: a new build system for the Glasgow Haskell Compiler. Now merged into the GHC tree!
https://gitlab.haskell.org/ghc/ghc/tree/master/hadrian
MIT License
208 stars 39 forks source link

Don't build unlit twice #595

Closed snowleopard closed 5 years ago

snowleopard commented 6 years ago

Currently we build the utility unlit twice, which is probably redundant.

Let's build it only in Stage0. This is an easy issue, I'll leave it here for a newcomer to try.

alpmestan commented 6 years ago

Just to be clear: every ghc needs this program around, so we do want to build it just once, but we quite likely want to copy that executable to the suitable place for later-stage GHCs. So the rule for unlit would be something like "if stage is 0, build unlit and put the executable where it's expected, otherwise just copy stage 0's unlit to where the executable is expected", correct?

snowleopard commented 6 years ago

@alpmestan Yes! And the same for touchy.

alpmestan commented 5 years ago

PR at #693.