From: | Florian Pflug <fgp(at)phlo(dot)org> |
---|---|
To: | "P(dot) Caillaud" <peufeu(at)peufeu(dot)com> |
Cc: | "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: LLVM / clang |
Date: | 2010-06-09 07:59:47 |
Message-ID: | A46AFA0A-85DF-468C-B57F-A749B360186E@phlo.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Jun 8, 2010, at 12:12 , 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 ?
Setting the environment variables CC and perhabs LD to your favorite compile before running ./configure should do the trick. If the compilation succeeds, should should probably try to run the regression tests with "make check".
The most heavily platform dependent part of the code is the spinlock implementation. You might want to check that it actually uses the version optimized for your platform, not the (much slower) generic implementation based on semaphores.
BTW, last time I tried compiling with clang basically worked on OSX, despite triggering a helluva lot of warnings.
best regards,
Florian Pflug
From | Date | Subject | |
---|---|---|---|
Next Message | Carsten Kropf | 2010-06-09 08:35:01 | Custom index structure and strange count problem |
Previous Message | Magnus Hagander | 2010-06-09 07:52:18 | Re: Git: Unable to get pack file |