Skip to content

hadrian: Offer a flag to print out the compiler invokation for a target

At the moment, whenever I want to check compilation of a single module, say, in base, I have to

  1. Change that module's source file, e.g. by inserting a {-# OPTIONS_GHC -ddump-simpl -ddump-to-file #-} pragma
  2. Run hadrian with -VV
  3. Be quick to cancel the build when the interesting invokation is shown
  4. Put up with having to rebuild the whole compiler.

When all I want is a command-line that I can tweak to my liking, perhaps by substituting the *.hs file for a local test-copy and replacing -o directives so that indeed the build directory is untouched.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information