Re: LLVM / clang
Peter Eisentraut <peter_e@gmx.net>
From: Peter Eisentraut <peter_e@gmx.net>
To: "P. Caillaud" <peufeu@peufeu.com>
Cc: "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2010-06-10T08:55:48Z
Lists: 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.