<div dir="ltr"><div class="inbox-inbox-uyb8Gf" style="color:rgb(33,33,33);font-size:13px"><div><div class="inbox-inbox-F3hlO"><div dir="ltr" class="gmail_msg">Hi, <div class="gmail_msg">How can I configure clang to use "-stdlib=libc++" by default instead of libstdc++?</div><div class="gmail_msg">If it's not possible, can I compile my own version to do it?</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">I found a place suggested running this command to compile clang for this purpose:</div><div class="gmail_msg"><div class="gmail_msg">../llvm/configure<span class="inbox-inbox-Apple-converted-space"> </span><span class="gmail_msg" style="line-height:1.5">CXXFLAGS="-stdlib=libc++ -std=c++11" </span><span class="gmail_msg" style="line-height:1.5">OBJCXXFLAGS="-stdlib=libc++ -std=c++11" </span><span class="gmail_msg" style="line-height:1.5">LDFLAGS="-stdlib=libc++"</span></div></div><div class="gmail_msg">But I see that the autoconf build system is deprecated.</div><div class="gmail_msg">Is there a cmake alternative for that command?</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">Or any other way to make clang use libc++ by default?</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">Thanks!</div></div></div></div></div><div class="inbox-inbox-uyb8Gf" style="color:rgb(33,33,33)">Oren</div></div>