[llvm-dev] Bootstrapping with in-tree libcxx
Carsten Mattner via llvm-dev
llvm-dev at lists.llvm.org
Tue Dec 27 06:45:21 PST 2016
On Tue, Dec 27, 2016 at 3:38 PM, Asiri Rathnayake
<asiri.rathnayake at gmail.com> wrote:
>
>
> On Tue, Dec 27, 2016 at 1:29 PM, Carsten Mattner via llvm-dev
> <llvm-dev at lists.llvm.org> wrote:
>>
>> When I tried to build with -DLLVM_ENABLE_LIBCXX, I found out that
>> it doesn't try to use the in-tree libcxx but looks for one built
>> and installed in the system.
>
>
> IIRC, -DLLVM_ENABLE_LIBCXX reduces to passing --stdlib=libc++ (see
> [1]) to the compiler.
>
> What you can do is a two-stage build. On the first stage, build just
> libc++ (ninja cxx cxxabi). On the second stage, re-configure with
> -DLLVM_ENABLE_LIBCXX and build the rest of the tools. We have a
> downstream builder that works this way to avoid a libstdc++ defect
> on the host platform. I can't remember the exact details, can dig
> them up if it helps.
Yes please, that would be helpful as an interim workaround.
More information about the llvm-dev
mailing list