How to compile ghc 7.6.2 with llvm?

David Terei davidterei at
Tue Feb 12 18:08:44 CET 2013

Hi Magicloud,

Setting to "BuildFlavour = perf-llvm" means that the GHC
built will be built using the LLVM backend of GHC.

For any build of GHC though, to *use* the LLVM backend of GHC you
simply want to compile with "-fllvm".

The output of inplace/bin/ghc-stage2 ¨Cinfo won't differ for a GHC
built with the native-code-generator compared to one built with the
LLVM code generator. Both build of GHC will include support for the
native-code-generator and the LLVM backends.


On 12 February 2013 08:48, Magicloud Magiclouds
<magicloud.magiclouds at> wrote:
> On Wed, Feb 13, 2013 at 12:41 AM, Magicloud Magiclouds
> <magicloud.magiclouds at> wrote:
>> ./configure --with-gcc=/usr/bin/llvm-gcc
> Sorry, I was wrong. with 'with-gcc' option, I got a ld error, which I will
> post later.
> Without this option, I got native code generator result because the
> configure found gcc.
> Should I or not using this option?
> --
> ÖñÃÜÆñ·ÁÁ÷Ë®¹ý
> ɽ¸ßÄÄ×èÒ°ÔÆ·É
> And for G+, please use
> _______________________________________________
> Glasgow-haskell-users mailing list
> Glasgow-haskell-users at

More information about the Glasgow-haskell-users mailing list