aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-03-21 18:58:53 -0400
committerMike Frysinger <vapier@gentoo.org>2012-03-21 18:58:53 -0400
commit1d51a540d3ec9c46b3e7237c22366ad420a48a9e (patch)
treef7e65128f1aaa0b0f8974e8db64adec85b5fc200
parentgcc-config: expect CTARGET to always be set in configs (diff)
downloadgcc-config-1d51a540d3ec9c46b3e7237c22366ad420a48a9e.tar.gz
gcc-config-1d51a540d3ec9c46b3e7237c22366ad420a48a9e.tar.bz2
gcc-config-1d51a540d3ec9c46b3e7237c22366ad420a48a9e.zip
gcc-config: drop unused --use-portage-chost flag
The gcc ebuilds haven't used this for a long time, so punt it. Don't feel like updating/validating those code paths if no one actually cares. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rwxr-xr-xgcc-config16
1 files changed, 0 insertions, 16 deletions
diff --git a/gcc-config b/gcc-config
index eb87dc3..179a911 100755
--- a/gcc-config
+++ b/gcc-config
@@ -52,9 +52,6 @@ Options:
-C, --nocolor Disable color output
-O, --use-old Use the old profile if one was selected.
-f, --force Make sure all config files are regenerated.
- -P, --use-portage-chost Only set to given profile if its CHOST is the
- same as that set in /etc/portage/make.conf
- (or one of other portage config files...).
-c, --get-current-profile Print current used gcc profile.
-l, --list-profiles Print a list of available profiles.
-S, --split-profile Split profiles into their components
@@ -582,7 +579,6 @@ chop_gcc_ver_spec() {
SET_X=false
NEED_ACTION="yes"
DOIT="switch_profile"
-CHECK_CHOST="no"
FORCE="no"
CC_COMP=
@@ -603,9 +599,6 @@ for x in "$@" ; do
-f|--force)
FORCE="yes"
;;
- -P|--use-portage-chost)
- CHECK_CHOST="yes"
- ;;
-c|--get-current-profile)
if [[ ${NEED_ACTION} == "yes" ]] ; then
NEED_ACTION="no"
@@ -750,15 +743,6 @@ if [[ ${DOIT} != "get_current_profile" ]] ; then
fi
fi
-if [[ ${CHECK_CHOST} == "yes" ]] ; then
- # Chosen CHOST are not the same as the real CHOST according to
- # make.conf, and --use-portage-chost option was given, so do nothing
- get_real_chost
- CC_COMP_VERSION=$(chop_gcc_ver_spec ${CC_COMP})
- CC_COMP_TARGET=${CC_COMP:0:${#CC_COMP}-${#CC_COMP_VERSION}-1}
- [[ ${CC_COMP_TARGET} != ${REAL_CHOST} ]] && exit 0
-fi
-
${DOIT}
# vim:ts=4