Running test with the stage-1 compiler

Ben Gamari ben at
Mon Dec 9 22:23:38 UTC 2019

Simon Peyton Jones via ghc-devs <ghc-devs at> writes:

> 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?

I suspect (but have not tested) that you can accomplish this with

    hadrian/ --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/ --test-compiler=_build/stage0/bin/ghc


- Ben
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 487 bytes
Desc: not available
URL: <>

More information about the ghc-devs mailing list