Validating with LLVM

Ben Gamari ben at
Thu Nov 1 15:19:23 UTC 2018

Travis Whitaker <pi.boy.travis at> writes:

> Hello GHC Devs,
> I'm working on a very tiny patch for GHC. The patch concerns the LLVM code
> generator, and I'd like to run the validate script. ./validate ignores mk/
> (which is probably correct) and it doesn't seem to be using the
> LLVM backend. LLVM tools are on the PATH; I'm working from the ghc-8.4
> branch so I'm using LLVM 5.
> Is it possible to validate with the LLVM backend? If not, what's considered
> a sufficiently thorough test? Apologies if I'm missing something obvious.
The validate script doesn't support this directly. I would do the

    ./validate --build-only
    make test WAY=llvm

That should do what you want (and IIRC is what we do in the LLVM CI


- 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