<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>For what it's worth, there's a "shortcut" to save a few
keystrokes: --test-compiler=stage1</p>
<p>But this broke at some point in the past few months, as
documented in #17528. I am however working on a patch to make this
work.<br>
</p>
<div class="moz-cite-prefix">On 09/12/2019 23:23, Ben Gamari wrote:<br>
</div>
<blockquote type="cite" cite="mid:87lfrl87fj.fsf@smart-cactus.org">
<pre class="moz-quote-pre" wrap="">Simon Peyton Jones via ghc-devs <a class="moz-txt-link-rfc2396E" href="mailto:ghc-devs@haskell.org"><ghc-devs@haskell.org></a> writes:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">Apparently 'sh validate' now uses Hadrian.
This has broken one of my workflows:
* build the stage1 compiler
* cd testsuite/tests
* make stage=1
That is, run the testsuite with the stage-1 compile. (This often produces a small test case for a compiler crash, much easier than debugging GHC compiling itself.)
How do I do this?
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
I suspect (but have not tested) that you can accomplish this with
hadrian/build.cabal.sh --flavor=validate --build-root=_buildvalidate --test-compiler=_buildvalidate/stage0/bin/ghc
Although I'll admit this is far from convenient. If you weren't using
the `validate` script this would just be
hadrian/build.cabal.sh --test-compiler=_build/stage0/bin/ghc
Cheers,
- Ben
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
ghc-devs mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ghc-devs@haskell.org">ghc-devs@haskell.org</a>
<a class="moz-txt-link-freetext" href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Alp Mestanogullari, Haskell Consultant
Well-Typed LLP, <a class="moz-txt-link-freetext" href="https://www.well-typed.com/">https://www.well-typed.com/</a>
Registered in England and Wales, OC335890
118 Wymering Mansions, Wymering Road, London, W9 2NF, England</pre>
</body>
</html>