[LLVMdev] Fwd: [llvm-commits] [PATCH] Building llvm-gcc with llvm-2.5 debian packages
mikael.lepisto at tut.fi
Tue Sep 15 03:28:38 PDT 2009
On 15.9.2009, at 12:11, Duncan Sands wrote:
> Hi Pekka,
>> To put it the another way: is there a reason to disallow
>> compiling llvm-gcc (optionally) against an installed LLVM (e.g.
>> from the Debian package)? It seems to work fine with this patch
>> Mikael posted.
> I think it would be great if llvm-gcc could be built against
> an installed LLVM. However my impression was that Mikael's
> original patch would break building against an not-installed llvm.
Hi, sorry for being a bit unclear before.
The patch would just fix llvm-gcc build system to be able to compile
with both, *llvm build in source directory* and *installed llvm
Correct include directory can be get with llvm-config --includedir,
because when llvm-config is excuted from llvm source tree (from
Release or Debug directory) it will return the include directory of
source tree (e.g. llvm-2.6svn/include). If llvm-config is called from
installation path it returns include directory of installed llvm
I tried the patch with compiling llvm-gcc with:
- llvm-2.5 source tree build
- installed llvm-2.5 from sources
- apt-get installed debian llvm-2.5 packages.
I will try if the patch works correctly with llvm trunk as well and
show also the compile commands which were used to configure and
compile the llvm-gcc.
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
More information about the llvm-dev