llvm.org GIT mirror llvm / 2e7beea
[C++11] Switch autoconf and make to use C++11 by default. Now both build systems have the default as C++11, but retain the ability to build with C++98. Again, please restrain your enthusiasm a bit in case this needs to be reverted. =] git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202546 91177308-0d34-0410-b5e6-96231b3b80d8 Chandler Carruth 5 years ago
2 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
591591 dnl --enable-cxx11 : check whether or not to use -std=c++11 on the command line
592592 AC_ARG_ENABLE(cxx11,
593593 AS_HELP_STRING([--enable-cxx11],
594 [Use c++11 if available (default is NO)]),,
594 [Use c++11 if available (default is YES)]),,
595595 enableval=default)
596596 case "$enableval" in
597597 yes) AC_SUBST(ENABLE_CXX11,[1]) ;;
598598 no) AC_SUBST(ENABLE_CXX11,[0]) ;;
599 default) AC_SUBST(ENABLE_CXX11,[0]);;
599 default) AC_SUBST(ENABLE_CXX11,[1]);;
600600 *) AC_MSG_ERROR([Invalid setting for --enable-cxx11. Use "yes" or "no"]) ;;
601601 esac
602602
14011401 --enable-compiler-version-checks
14021402 Check the version of the host compiler (default is
14031403 YES)
1404 --enable-cxx11 Use c++11 if available (default is NO)
1404 --enable-cxx11 Use c++11 if available (default is YES)
14051405 --enable-split-dwarf Use split-dwarf if available (default is NO)
14061406 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
14071407 --enable-clang-static-analyzer
48154815 ;;
48164816 no) ENABLE_CXX11=0
48174817 ;;
4818 default) ENABLE_CXX11=0
4818 default) ENABLE_CXX11=1
48194819 ;;
48204820 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
48214821 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}