Re: LLVM / clang - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: LLVM / clang
Date
Msg-id 1276160148.32193.7.camel@fsopti579.F-Secure.com
Whole thread Raw
In response to LLVM / clang  ("P. Caillaud" <peufeu@peufeu.com>)
Responses Re: LLVM / clang
Re: LLVM / clang
List pgsql-hackers
On tis, 2010-06-08 at 12:12 +0200, P. Caillaud wrote:
> I'd like to experiment on compiling postgres with LLVM (either llvm-gcc or  
> clang) on Linux, is it supported ? Where should I start ?

The way to choose a compiler is

./configure CC=your-cc ...other...options...

We support a fair amount of non-GCC compilers, so supporting one or two
more should be possible.

Quick testing shows that clang doesn't get through the configure stage
on this Debian system -- it looks like some amount of better integration
with glibc might be needed.  Building with llvm-gcc works fine, but I
understand that using llvm-gcc with native code generation isn't all
that different from using gcc itself, so that's not a surprising result.
The only issue is that the float8 regression test fails, so it is
apparently not *exactly* the same.




pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: LLVM / clang
Next
From: Heikki Linnakangas
Date:
Subject: Re: InvalidXLogRecPtr in docs