[cfe-dev] Supporting multiple targets from a single 'clang' installation
C Bergström via cfe-dev
cfe-dev at lists.llvm.org
Tue Oct 18 03:13:36 PDT 2016
For our out-of-tree madness (which I'll push a bunch of patches public
very soon) we do the following
----------
TLD/{VERSION}/lib|include/{PLATFORM}/{TARGET}/{BITS}/
So it looks something like this
clang/4.0.0/lib/solaris/x86_64/64/libc++.so
This allows cross platform, multiple versions, 32/64 bit as well as
multiple targets to all play nice inside the same prefix.
Keep in mind that you'll also need libc/m, linker and a few other
things for this to actually work.
On Tue, Oct 18, 2016 at 6:02 PM, Martin J. O'Riordan via cfe-dev
<cfe-dev at lists.llvm.org> wrote:
> Hi CFE-Dev,
>
>
>
> I am starting to get adventurous, and would like to build our out-of-tree
> version of CLang so that it can target both our SHAVE CPU as a
> cross-compiler, and the X86 host. I have no problem getting this to build
> and generate code, but where I am running into trouble is in the
> configuration of where the headers and libraries should reside.
>
>
>
> How should I go about configuring the CLang build so that I can have it
> locate the system headers and libraries corresponding to each target?
>
>
>
> Thanks,
>
>
>
> MartinO
>
>
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
More information about the cfe-dev
mailing list