vapier      15/06/01 07:17:40

  Modified:             toolchain.eclass
  Log:
  add USE=debug to control --enable-checking behavior for all versions rather 
than just snapshots

Revision  Changes    Path
1.674                eclass/toolchain.eclass

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?rev=1.674&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?rev=1.674&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?r1=1.673&r2=1.674

Index: toolchain.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v
retrieving revision 1.673
retrieving revision 1.674
diff -u -r1.673 -r1.674
--- toolchain.eclass    1 Jun 2015 07:04:04 -0000       1.673
+++ toolchain.eclass    1 Jun 2015 07:17:40 -0000       1.674
@@ -1,6 +1,6 @@
 # Copyright 1999-2015 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.673 2015/06/01 
07:04:04 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.674 2015/06/01 
07:17:40 vapier Exp $
 
 # Maintainer: Toolchain Ninjas <[email protected]>
 
@@ -134,7 +134,7 @@
 IUSE_DEF=( nls nptl )
 
 if [[ ${PN} != "kgcc64" && ${PN} != gcc-* ]] ; then
-       IUSE+=" altivec"
+       IUSE+=" altivec debug"
        IUSE_DEF+=( cxx fortran )
        [[ -n ${PIE_VER} ]] && IUSE+=" nopie"
        [[ -n ${HTB_VER} ]] && IUSE+=" boundschecking"
@@ -880,10 +880,8 @@
 
        # Use the default ("release") checking because upstream usually neglects
        # to test "disabled" so it has a history of breaking. #317217
-       if tc_version_is_at_least 4 || [[ -n ${GCC_CHECKS_LIST} ]] ; then
-               confgcc+=( --enable-checking=${GCC_CHECKS_LIST:-release} )
-       else
-               confgcc+=( --disable-checking )
+       if tc_version_is_at_least 3.4 ; then
+               confgcc+=( --enable-checking="${GCC_CHECKS_LIST:-$(usex debug 
yes release)}" )
        fi
 
        # Branding




Reply via email to