Hi Craig,<div><br></div><div>It works! Thank you very much.</div><div><br></div><div>Mingliang</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Nov 27, 2012 at 4:13 PM, Craig Topper <span dir="ltr"><<a href="mailto:craig.topper@gmail.com" target="_blank">craig.topper@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I've added the missing magic to Makefile.llvm.rules in r168685.<br><br><div class="gmail_quote"><div><div class="h5">

On Tue, Nov 27, 2012 at 12:05 AM, Mingliang LIU <span dir="ltr"><<a href="mailto:liuml07@gmail.com" target="_blank">liuml07@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">Hi,<div><br></div><div>I use the following line to configure, which can enable the c++11 in the project building. However, I don't think it's an elegant way to do the trick.</div>


<div><font face="courier new, monospace">$ CXX="clang++ -std=c++11" ../configure</font></div>

<div><br></div><div>I don't know why "-enable-cxx11" doesn't work as expected when I configure the project.</div><div><br></div><div>Regards.</div><div><div><div class="gmail_extra">
<br><br><div class="gmail_quote">

On Mon, Nov 26, 2012 at 7:34 PM, Mingliang LIU <span dir="ltr"><<a href="mailto:liuml07@gmail.com" target="_blank">liuml07@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




Hi,<div><br></div><div>I'm using the latest LLVM (<font face="courier new, monospace">r168491</font>) built by GCC 4.7.2 (Gentoo masked version). The <font face="courier new, monospace">clang++</font> runs as expected when I compile a hello program with c++11 enabled.</div>





<div><br></div><div>I created a project (copied from<font face="courier new, monospace"> sample/</font>) where there are some C++ source files with c++11 features.  I configured my project using the following command:</div>





<div><font face="courier new, monospace">$ CXXFLAGS="-std=c++11" ../configure --enable-cxx11</font></div><div>However, I found that the <font face="courier new, monospace">clang++</font> did not build my project with the "<font face="courier new, monospace">-std=c++</font>" option[1].<br>





</div><div><br></div><div>Could anyone kindly show me how to enable C++11 in a LLVM project, please?</div><div><br></div><div>Thank you.</div><div>Miangliang.</div><div><br></div><div>[1] I get the detailed options building my project using <font face="courier new, monospace">'make VERBOSE=1'</font></div>




<span><font color="#888888">
<div>-- <br><font color="#666666" face="arial, helvetica, sans-serif">Mingliang LIU (刘明亮 in Chinese)<br><br>PACMAN Group,  Dept. of Computer Science & Technology<br>Tsinghua University, Beijing 100084, China<br>


Email: <a href="mailto:liuml07@mails.tsinghua.edu.cn" target="_blank">liuml07@mails.tsinghua.edu.cn</a></font><div><font color="#666666" face="arial, helvetica, sans-serif">Homepage: <a href="http://pacman.cs.tsinghua.edu.cn/~liuml07" style="line-height:19px;text-align:center" target="_blank">http://pacman.cs.tsinghua.edu.cn/~liuml07/</a></font></div>





<br>
</div>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><font color="#666666" face="arial, helvetica, sans-serif">Mingliang LIU (刘明亮 in Chinese)<br><br>PACMAN Group,  Dept. of Computer Science & Technology<br>




Tsinghua University, Beijing 100084, China<br>Email: <a href="mailto:liuml07@mails.tsinghua.edu.cn" target="_blank">liuml07@mails.tsinghua.edu.cn</a></font><div><font color="#666666" face="arial, helvetica, sans-serif">Homepage: <a href="http://pacman.cs.tsinghua.edu.cn/~liuml07" style="line-height:19px;text-align:center" target="_blank">http://pacman.cs.tsinghua.edu.cn/~liuml07/</a></font></div>




<br>
</div>
</div></div><br></div></div>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br>~Craig<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><font face="arial, helvetica, sans-serif" style="background-color:rgb(255,255,255)" color="#666666">Mingliang LIU (刘明亮 in Chinese)<br><br>PACMAN Group,  Dept. of Computer Science & Technology<br>

Tsinghua University, Beijing 100084, China<br>Email: <a href="mailto:liuml07@mails.tsinghua.edu.cn" target="_blank">liuml07@mails.tsinghua.edu.cn</a></font><div><font face="arial, helvetica, sans-serif" style="background-color:rgb(255,255,255)" color="#666666">Homepage: <a href="http://pacman.cs.tsinghua.edu.cn/~liuml07" style="line-height:19px;text-align:center" target="_blank">http://pacman.cs.tsinghua.edu.cn/~liuml07/</a></font></div>

<br>
</div>