[llvm] r202546 - [C++11] Switch autoconf and make to use C++11 by default. Now both build

Galina Kistanova gkistanova at gmail.com
Fri Mar 7 09:45:04 PST 2014


Hi Chandler,

This change makes clang-native-mingw32-win7 builder to fail:
http://lab.llvm.org:8011/builders/clang-native-mingw32-win7/builds/6088

The previous revision build is green:
http://lab.llvm.org:8011/builders/clang-native-mingw32-win7/builds/6074

Please have a look at this?

Thanks

Galina


On Fri, Feb 28, 2014 at 1:47 PM, Chandler Carruth <chandlerc at gmail.com>wrote:

> Author: chandlerc
> Date: Fri Feb 28 15:47:41 2014
> New Revision: 202546
>
> URL: http://llvm.org/viewvc/llvm-project?rev=202546&view=rev
> Log:
> [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. =]
>
> Modified:
>     llvm/trunk/autoconf/configure.ac
>     llvm/trunk/configure
>
> Modified: llvm/trunk/autoconf/configure.ac
> URL:
> http://llvm.org/viewvc/llvm-project/llvm/trunk/autoconf/configure.ac?rev=202546&r1=202545&r2=202546&view=diff
>
> ==============================================================================
> --- llvm/trunk/autoconf/configure.ac (original)
> +++ llvm/trunk/autoconf/configure.ac Fri Feb 28 15:47:41 2014
> @@ -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
>
>
> Modified: llvm/trunk/configure
> URL:
> http://llvm.org/viewvc/llvm-project/llvm/trunk/configure?rev=202546&r1=202545&r2=202546&view=diff
>
> ==============================================================================
> --- llvm/trunk/configure (original)
> +++ llvm/trunk/configure Fri Feb 28 15:47:41 2014
> @@ -1402,7 +1402,7 @@ Optional Features:
>    --enable-compiler-version-checks
>                            Check the version of the host compiler (default
> is
>                            YES)
> -  --enable-cxx11          Use c++11 if available (default is NO)
> +  --enable-cxx11          Use c++11 if available (default is YES)
>    --enable-split-dwarf    Use split-dwarf if available (default is NO)
>    --enable-clang-arcmt    Enable building of clang ARCMT (default is YES)
>    --enable-clang-static-analyzer
> @@ -4816,7 +4816,7 @@ case "$enableval" in
>   ;;
>    no)  ENABLE_CXX11=0
>   ;;
> -  default) ENABLE_CXX11=0
> +  default) ENABLE_CXX11=1
>  ;;
>    *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11.
> Use \"yes\" or \"no\"" >&5
>  echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or
> \"no\"" >&2;}
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>



-- 
Thanks

Galina
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140307/faf5aa2c/attachment.html>


More information about the llvm-commits mailing list