<div dir="ltr"><div><div>Also please note that there is a description of each option in the CMakeLists.txt :)<br><br><pre>llvm/trunk/CMakeLists.txt
option(LLVM_ENABLE_MODULES "Compile with C++ modules enabled." OFF)
option(LLVM_ENABLE_CXX1Y "Compile with C++1y enabled." OFF)
option(LLVM_ENABLE_LIBCXX "Use libc++ if available." OFF)
option(LLVM_ENABLE_LIBCXXABI "Use libc++abi when using libc++." OFF)
option(LLVM_ENABLE_PEDANTIC "Compile with pedantic enabled." ON)
option(LLVM_ENABLE_WERROR "Fail and stop if a warning is triggered." OFF)</pre><br></div>Kind Regards<br></div>Martell<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 28, 2015 at 12:30 PM, Martell Malone <span dir="ltr"><<a href="mailto:martellmalone@gmail.com" target="_blank">martellmalone@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi Michael,<br><br></div><span class=""><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">I am wondering about the meaning of the cmake flags LLVM_ENABLE_LIBCXX 
and LLVM_ENABLE_LIBCXXABI. Are they used to indicate that if the C/C++ 
compiler for building LLVM is clang, and if this clang has support for 
libc++ with libc++Abi, that both lib++ and libc++abi should be used 
(instead of linking to the default, which at least on Linux is 
libstdc++)?</blockquote><div><br></div></span><div>Yes that is actually what they are used for.<br><br></div><div>Please see<br><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__reviews.llvm.org_D2381&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=Mfk2qtn1LTDThVkh6-oGglNfMADXfJdty4_bhmuhMHA&m=gzxfQPyiZS6xsZUdJsKSAaGF1qTO9MK3FW4OhFO8bQ8&s=vVUlt5hRuLIlrvMUjcS6Fa53CMyBeTHLVXmMVVxfClA&e=" target="_blank">http://reviews.llvm.org/D2381</a><br><br></div><div>Kind Regards<br></div><div>Martell <br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Tue, Jul 28, 2015 at 12:10 PM, Schlottke-Lakemper, Michael <span dir="ltr"><<a href="mailto:m.schlottke-lakemper@aia.rwth-aachen.de" target="_blank">m.schlottke-lakemper@aia.rwth-aachen.de</a>></span> wrote:<br></span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Hi,<br>
<br>
I am wondering about the meaning of the cmake flags LLVM_ENABLE_LIBCXX and LLVM_ENABLE_LIBCXXABI. Are they used to indicate that if the C/C++ compiler for building LLVM is clang, and if this clang has support for libc++ with libc++Abi, that both lib++ and libc++abi should be used (instead of linking to the default, which at least on Linux is libstdc++)? If not, what is the canonical way of building LLVM with libc++? I am asking since I seem to have problems linking libLLVMSupport.a to a program while using clang with libc++, whereas the used clang/LLVM compiler was originally built with clang and libstdc++.<br>
<br>
Related to the first question: do the above flags also make clang use libc++ by default, or is this configurable via a different set of flags?<br>
<br>
Thanks a lot in advance<br>
<br>
Michael<br>
<br>
--<br>
Michael Schlottke-Lakemper<br>
<br>
SimLab Highly Scalable Fluids & Solids Engineering<br>
Jülich Aachen Research Alliance (JARA-HPC)<br>
RWTH Aachen University<br>
<br>
Wüllnerstraße 5a<br>
52062 Aachen<br>
Germany<br>
<br></span>
Phone: <a href="tel:%2B49%20%28241%29%2080%2095188" value="+492418095188" target="_blank">+49 (241) 80 95188</a><br>
Fax: <a href="tel:%2B49%20%28241%29%2080%2092257" value="+492418092257" target="_blank">+49 (241) 80 92257</a><br>
Mail: <a href="mailto:m.schlottke-lakemper@aia.rwth-aachen.de" target="_blank">m.schlottke-lakemper@aia.rwth-aachen.de</a><br>
Web: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.jara.org_jara-2Dhpc&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=Mfk2qtn1LTDThVkh6-oGglNfMADXfJdty4_bhmuhMHA&m=gzxfQPyiZS6xsZUdJsKSAaGF1qTO9MK3FW4OhFO8bQ8&s=Wt1E_HEndh1zA8SM8xYUtISqIRNPsr9NoFH4X633Tqc&e=" rel="noreferrer" target="_blank">http://www.jara.org/jara-hpc</a><span class=""><br>
<br>
<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
</span><a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" rel="noreferrer" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" rel="noreferrer" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</blockquote></div><br></div>
</blockquote></div><br></div>