Re: LLVM / clang

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: LLVM / clang
Дата
Msg-id 1276160148.32193.7.camel@fsopti579.F-Secure.com
обсуждение исходный текст
Ответ на LLVM / clang  ("P. Caillaud" <peufeu@peufeu.com>)
Ответы Re: LLVM / clang  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: LLVM / clang  (Peter Eisentraut <peter_e@gmx.net>)
Список 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 по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: LLVM / clang
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: InvalidXLogRecPtr in docs