Hello Simon, Andrey,<br><br>For “How to use Hadrian wikipage”, maybe Simon wanted this one from the GHC Wiki:<br><br><a href="https://ghc.haskell.org/trac/ghc/wiki/Building/Hadrian/QuickStart">https://ghc.haskell.org/trac/ghc/wiki/Building/Hadrian/QuickStart</a><br><br>It does mention the verbose flag, but does not really explain that you can get what Simon wants, I believe.<br><br>--<br>Best wishes,<br>Artem<br><div class="gmail_quote"><div dir="ltr">чт, 30 авг. 2018 г. в 7:25, Andrey Mokhov <<a href="mailto:andrey.mokhov@newcastle.ac.uk">andrey.mokhov@newcastle.ac.uk</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Simon,<br>
<br>
If you want to see all command lines, you can pass '--verbose' or '-V' flag to Hadrian and it will then print out everything it does.<br>
<br>
But you can also choose which particular command lines to print in UserSettings, see:<br>
<br>
<a href="https://github.com/snowleopard/hadrian/blob/master/doc/user-settings.md#verbose-command-lines" rel="noreferrer" target="_blank">https://github.com/snowleopard/hadrian/blob/master/doc/user-settings.md#verbose-command-lines</a> <br>
<br>
So, you can do:<br>
<br>
verboseCommand = input "//GHC/Real.hs"<br>
<br>
Or, alternatively, <br>
<br>
verboseCommand = output "//GHC/Real.hi"<br>
<br>
Both should produce the same result (in theory).<br>
<br>
In general, we have the following documents on Hadrian: <br>
<br>
The README: <a href="https://github.com/snowleopard/hadrian/blob/master/README.md" rel="noreferrer" target="_blank">https://github.com/snowleopard/hadrian/blob/master/README.md</a> <br>
How to use UserSettings: <a href="https://github.com/snowleopard/hadrian/blob/master/doc/user-settings.md" rel="noreferrer" target="_blank">https://github.com/snowleopard/hadrian/blob/master/doc/user-settings.md</a> <br>
An overview of build flavours: <a href="https://github.com/snowleopard/hadrian/blob/master/doc/flavours.md" rel="noreferrer" target="_blank">https://github.com/snowleopard/hadrian/blob/master/doc/flavours.md</a> <br>
<br>
I hope the more Hadrian gets used, the more complete the documentation will become.<br>
<br>
Cheers,<br>
Andrey<br>
<br>
From: Simon Peyton Jones [mailto:<a href="mailto:simonpj@microsoft.com" target="_blank">simonpj@microsoft.com</a>] <br>
Sent: 30 August 2018 12:19<br>
To: Simon Peyton Jones <<a href="mailto:simonpj@microsoft.com" target="_blank">simonpj@microsoft.com</a>>; Alp Mestanogullari <<a href="mailto:alp@well-typed.com" target="_blank">alp@well-typed.com</a>>; Andrey Mokhov <<a href="mailto:andrey.mokhov@newcastle.ac.uk" target="_blank">andrey.mokhov@newcastle.ac.uk</a>><br>
Cc: ghc-devs <<a href="mailto:ghc-devs@haskell.org" target="_blank">ghc-devs@haskell.org</a>><br>
Subject: RE: Hadrian<br>
<br>
Sigh. As an inconvenient workaround, I tried adding {-# OPTIONS_GHC -dverbose-core2core #-} to GHC.Real, and then doing<br>
cabal new-run hadrian -- -c -j4 --flavour=quick --directory=".."<br>
in hadrian/<br>
That did recompile GHC.Real - but all the debug output disappeared!<br>
I tried adding {-# OPTIONS_GHC -ddebug-output #-} as well, but that didn't work.<br>
I'm stuck - any ideas?<br>
Simon<br>
<br>
From: ghc-devs <<a href="mailto:ghc-devs-bounces@haskell.org" target="_blank">ghc-devs-bounces@haskell.org</a>> On Behalf Of Simon Peyton Jones via ghc-devs<br>
Sent: 30 August 2018 12:12<br>
To: Alp Mestanogullari <<a href="mailto:alp@well-typed.com" target="_blank">alp@well-typed.com</a>>; Andrey Mokhov <<a href="mailto:andrey.mokhov@newcastle.ac.uk" target="_blank">andrey.mokhov@newcastle.ac.uk</a>><br>
Cc: ghc-devs <<a href="mailto:ghc-devs@haskell.org" target="_blank">ghc-devs@haskell.org</a>><br>
Subject: Hadrian<br>
<br>
Alp, Andrey<br>
The old build system printed out every command line; and I often copy-paste that info to build single modules.<br>
Eg currently, when trying to understand #15570 I see a suspicious GHC.Real.hi. So I want to manually recompile GHC.Real (from base), adding some debug flags. How can I get the right command line to do that from the build log?<br>
Where is the "how to use Hadrian" wiki page? I know you've been writing one.<br>
Simon<br>
_______________________________________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org" target="_blank">ghc-devs@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a><br>
</blockquote></div>