<div dir="ltr"><div>Hi Michael,<br><br></div><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><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=zqdAe8nblmgRPgsop9kLvPATBQK1n-V-EghJlo8sOM4&s=ETgZDjDcX2OGWt19C-OpDfv8Uyym7JuBeAT4aoVk7m8&e=">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">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><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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>
Phone: <a href="tel:%2B49%20%28241%29%2080%2095188" value="+492418095188">+49 (241) 80 95188</a><br>
Fax: <a href="tel:%2B49%20%28241%29%2080%2092257" value="+492418092257">+49 (241) 80 92257</a><br>
Mail: <a href="mailto:m.schlottke-lakemper@aia.rwth-aachen.de">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=zqdAe8nblmgRPgsop9kLvPATBQK1n-V-EghJlo8sOM4&s=Q1TZ-WhmDXHfwNzDKAm7vPT7f0_QX-i__zFhnL93kLQ&e=" rel="noreferrer" target="_blank">http://www.jara.org/jara-hpc</a><br>
<br>
<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">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>