diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2014-02-28 21:47:41 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2014-02-28 21:47:41 +0000 |
commit | 2e7beea23ce80c916f8a4c12299889b268c067d4 (patch) | |
tree | 1bee90a4ab3f290cccd44992fdc1f4d4f08f4259 /autoconf | |
parent | cec8bf321a5bd72c3165ad16b6036d5bcbe40c08 (diff) | |
download | llvm-2e7beea23ce80c916f8a4c12299889b268c067d4.tar.gz llvm-2e7beea23ce80c916f8a4c12299889b268c067d4.tar.bz2 llvm-2e7beea23ce80c916f8a4c12299889b268c067d4.tar.xz |
[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
Diffstat (limited to 'autoconf')
-rw-r--r-- | autoconf/configure.ac | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac index 1b9555f25d..018321591c 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -592,12 +592,12 @@ esac dnl --enable-cxx11 : check whether or not to use -std=c++11 on the command line AC_ARG_ENABLE(cxx11, AS_HELP_STRING([--enable-cxx11], - [Use c++11 if available (default is NO)]),, + [Use c++11 if available (default is YES)]),, enableval=default) case "$enableval" in yes) AC_SUBST(ENABLE_CXX11,[1]) ;; no) AC_SUBST(ENABLE_CXX11,[0]) ;; - default) AC_SUBST(ENABLE_CXX11,[0]);; + default) AC_SUBST(ENABLE_CXX11,[1]);; *) AC_MSG_ERROR([Invalid setting for --enable-cxx11. Use "yes" or "no"]) ;; esac |