[LLVMdev] How to enable c++11 in a llvm project?
liuml07 at gmail.com
Tue Nov 27 00:05:31 PST 2012
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
$ CXX="clang++ -std=c++11" ../configure
I don't know why "-enable-cxx11" doesn't work as expected when I configure
On Mon, Nov 26, 2012 at 7:34 PM, Mingliang LIU <liuml07 at gmail.com> wrote:
> I'm using the latest LLVM (r168491) built by GCC 4.7.2 (Gentoo masked
> version). The clang++ runs as expected when I compile a hello program
> with c++11 enabled.
> I created a project (copied from sample/) where there are some C++ source
> files with c++11 features. I configured my project using the following
> $ CXXFLAGS="-std=c++11" ../configure --enable-cxx11
> However, I found that the clang++ did not build my project with the "
> -std=c++" option.
> Could anyone kindly show me how to enable C++11 in a LLVM project, please?
> Thank you.
>  I get the detailed options building my project using 'make VERBOSE=1'
> Mingliang LIU (刘明亮 in Chinese)
> PACMAN Group, Dept. of Computer Science & Technology
> Tsinghua University, Beijing 100084, China
> Email: liuml07 at mails.tsinghua.edu.cn
> Homepage: http://pacman.cs.tsinghua.edu.cn/~liuml07/
Mingliang LIU (刘明亮 in Chinese)
PACMAN Group, Dept. of Computer Science & Technology
Tsinghua University, Beijing 100084, China
Email: liuml07 at mails.tsinghua.edu.cn
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev