diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2014-03-01 03:33:08 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2014-03-01 03:33:08 +0000 |
commit | f38b536b3d49b376c40155ae729e33ecc3069b47 (patch) | |
tree | a9e5805e9f3d41c16528f130beebcad4ec3990d3 /autoconf | |
parent | b23750a8ae1628d98d6b0ad0ec3e975a3c42863b (diff) | |
download | llvm-f38b536b3d49b376c40155ae729e33ecc3069b47.tar.gz llvm-f38b536b3d49b376c40155ae729e33ecc3069b47.tar.bz2 llvm-f38b536b3d49b376c40155ae729e33ecc3069b47.tar.xz |
[C++11] Replace autoconf --enable-cxx11 with --enable-cxx1y. The
baseline is now C++11, and we unconditionally add -std=c++11 to the
flags.
This has the dim potential to break some non-GNU-compatible compiler (in
terms of -std flags) using the makefiles, but those makefiles are
littered with GNU-style compile flags so it would be very surprising to
me for it to actually happen in practice. As always, do let me know if
there is a toolchain you're using where this doesn't work, and I'll be
watching the bots.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202569 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf')
-rw-r--r-- | autoconf/configure.ac | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac index 018321591c..72e423928e 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -589,16 +589,16 @@ bypass these sanity checks.])]) ;; 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 YES)]),, +dnl --enable-cxx1y : check whether or not to use -std=c++1y on the command line +AC_ARG_ENABLE(cxx1y, + AS_HELP_STRING([--enable-cxx1y], + [Use c++1y if available (default is NO)]),, enableval=default) case "$enableval" in - yes) AC_SUBST(ENABLE_CXX11,[1]) ;; - no) AC_SUBST(ENABLE_CXX11,[0]) ;; - default) AC_SUBST(ENABLE_CXX11,[1]);; - *) AC_MSG_ERROR([Invalid setting for --enable-cxx11. Use "yes" or "no"]) ;; + yes) AC_SUBST(ENABLE_CXX1Y,[1]) ;; + no) AC_SUBST(ENABLE_CXX1Y,[0]) ;; + default) AC_SUBST(ENABLE_CXX1Y,[0]);; + *) AC_MSG_ERROR([Invalid setting for --enable-cxx1y. Use "yes" or "no"]) ;; esac dnl --enable-fission : check whether or not to use -gsplit-dwarf on the command |